Skip to content
Log in

Checkout CustomerInformation Controller - Liquid Controller Reference

On this page

Description

The Checkout CustomerInformation controller handles requests related to checkout customerinformation functionality in your StoreConnect storefront.

Property Value
Controller CustomerInformationController
Liquid Template Path controllers/checkout/customerinformation/
Namespace Checkout

Actions

Action HTTP Method Route Liquid Page
show GET /checkout/customerinformation/:id
update PATCH /checkout/customerinformation/:id
process_quotation_order GET /checkout/customerinformation/process-quotation-order

Liquid Controller Lifecycle

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

  1. Beforecontrollers/checkout/customerinformation/{action}.liquid 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" %})

Example

Create a file at controllers/checkout/customerinformation/show.liquid:

liquid {% before %} variables custom_heading: "Welcome" {% endbefore %}

Was this article helpful?

Was this article helpful?