Checkout Twig functions¶
You can use checkout Twig functions to get information about the checkout process, as well as total values related to cart and cart items.
ibexa_checkout_step_label()
¶
The ibexa_checkout_step_label()
function returns a name of the step (configured in framework.workflows.workflow.ibexa_checkout.transitions.<transition>.metadata.label
).
1 2 3 |
|
ibexa_checkout_steps()
¶
The ibexa_checkout_steps()
function returns a list of steps configured in framework.workflows.workflow.ibexa_checkout.transitions
).
1 2 3 |
|
ibexa_checkout_step_path()
¶
The ibexa_checkout_step_path()
function returns a path to the step.
1 |
|
ibexa_checkout_step_url()
¶
The ibexa_checkout_step_url()
function returns a URL address of the step.
By setting the optional argument to true
you can decide whether the function
returns a relative or absolute URL of the checkout step.
The default value of the optional argument is false
, which stands for the absolute URL.
1 |
|
ibexa_checkout_step_number()
¶
The ibexa_checkout_step_number
function returns a sequential number of the step (based on configuration under framework.workflows.workflow.ibexa_checkout.transitions
).
1 2 3 |
|
ibexa_checkout_summary_entries()
¶
The ibexa_checkout_summary_entries
function takes in a single argument, a cart summary object, and returns the checkout summary.
1 2 3 4 5 |
|
ibexa_checkout_summary_vat_summaries()
¶
The ibexa_checkout_summary_vat_summaries()
function takes in a single argument, a cart summary object,
and returns an array of VAT summary objects for the cart.
Each VAT summary relates to a certain VAT rate, and contains information about the VAT rate, and the VAT value.
1 |
|