Orders list
orders list page template
is designated for listing customers orders where customers can check their existing orders to view the status, price, order number and make changes where applicable.
Example

Variables
CustomerOrderPage
page
object
optional
title
string
optional
slug
enum<string>
optional
Allowed values:
customer.orders.indexcustomer.orders.index.pending
orders
array[object (Order) {18}]
optional
orders.next_page
id
integer
optional
reference_id
integer
optional
created_at
string <date>
optional
sub_total
number
optional
total
number
optional
cod_cost
number
optional
can_reorder
boolean
optional
can_cancel
boolean
optional
can_rate
boolean
optional
cancel_url
string
optional
payment_url
string
optional
shipping
object | null
optional
tax
object
optional
status
object
optional
items
array [object]
optional
discounts
array [object {2}]
optional
is_rated
boolean
optional
rating
object
optional
Components
master.twig
, and accordingly, it takes the unified look-and-feel. For example, all of the header's
and footer's
components will be added automatically to this page.User
model is accessible automatically on this page because it's included in the master.twig
layout file.JS Web Components
<salla-button>
<salla-infinite-scroll>
Hooks
orders list page template
calls for the following hooks in order to inject extra information.
Usage
orders
are displyed using a for-loop
statement. This can be done easily by using the orders
object as we see in the following example. Note that the Salla component salla infinite scroll has been used to ease the pagination process.
Modified at 2025-03-04 12:54:02