Skip to content
Log in

Checkout ShippingInformation Controller - Liquid Controller Reference

On this page

Description

The Checkout ShippingInformation controller handles requests related to checkout shippinginformation functionality in your StoreConnect storefront.

Property Value
Controller ShippingInformationController
Liquid Template Path controllers/checkout/shippinginformation/
Namespace Checkout

Actions

Action HTTP Method Route Liquid Page
show GET /checkout/shippinginformation/:id —
update PATCH /checkout/shippinginformation/:id —

Liquid templates

Each action runs the template below, if your theme has one.

Action Template
create controllers/checkout/steps/shipping/create.liquid
edit controllers/checkout/steps/shipping/edit.liquid
show controllers/checkout/steps/shipping/show.liquid
update controllers/checkout/steps/shipping/update.liquid

Liquid Controller Lifecycle

For each action, Liquid controller templates are executed in three phases:

  1. Before — runs before the Rails action
  2. After — runs after the Rails action but before the response is sent
  3. Final — runs after the response, useful for cleanup

Available Liquid Tags

Inside controller templates, these tags are available:

Tag Description
{% params %} Set request parameters (e.g. {% params foo: "bar" %})
{% variables %} Set template variables (e.g. {% variables title: "Hello" %})
{% respond %} Respond with custom content, alert, or notice
{% redirect %} Redirect the request (e.g. {% redirect to: "/products" %})
{% action %} Execute a server-side action (e.g. {% action "cart.add", product_identifier: "blue-widget", quantity: 1 %})

Example

Create controllers/checkout/steps/shipping/edit.liquid. The before phase sets a variable before the page renders:

```liquid

{% before %} {% variables page_heading: “Welcome back” %} {% endbefore %} ```

The page template can then output it with {{ page_heading }}.

Was this article helpful?

Was this article helpful?