The thank you page template
is the page the customer is taken to after completing an order transaction. Naturally, the page includes a brief thank you message that signals the store's appreciation for completing the order - just like any consumer would expect. In addition, this page template lists the order details for the customer's reference.Following is the page location and url:Example#
Variables#
Title of the page. May include html tags.
Meaningful unique identifier that is readable by users. Slug are predifned valued in which each page has a list of allowed values. Below are the allowed values for this page.
Detailed structure of the Order model object showing its fields and data types.
A unique alphanumeric code or identifier assigned to a specific order. List of orders can be found here A unique alphanumeric code or identifier assigned to a specific order cart.
A specific alphanumeric identifier associated with an order.
Date and Time of the order.
Allowed values:storelandingforgotten_basketabandoned-cartcampaigndashboardbuy_as_giftmahly-appbuy_nowone-clickcomplete_order
Whether or not the order 's status is set to draft
Whether or not the Merchant has read the order
The machine or device used when the customer placed the order.
status
object (NewOrderStatus)
requiredThe option to quote order price.
The specific payment option or financial mechanism chosen and used by a customer to pay for a product or service as part of an order, encompassing various methods.
The currency in which order costs and prices are expressed and processed, based on the customer's preferences or the business's operational currency.
The option to enable order cancellation by the store customer.
True
value should be set if the order status is in under review and in progress, as according to the store settings.
Whether or not to show the weight value.
Whether or not to enable reorder .
is_pending_payment
boolean
requiredThe option of displaying order is pending payment to the customer when the order status is payment_pending
.
pending_payment_ends_at
integer
requiredLast date allowed to customer to pay the order.
Order Rating Link.
Note that the order has to be of either of the following statuses: completed
, delivered
, or shipped
. The merchant has to allow the product to be rated from the Store Settings > Rating Settings shipments
array [object {22}]
requiredpickup_branch
object (Branch)
requiredOrder pickup branch details.
shipment_branch
object (ShipmentBranch)
requiredOrder shipment branch details.
customer
object (Customer)
requiredThank you message content.
short_share_message
string
optionalShort message for sharing option.
Hooks#
The thank you page template
may call the following hooks in order to inject extra information.JS Web Components#
The Thank You page may include the following JS Web Components, which are ready-made designs and style-sets of web components for Salla stores:Usage#
This page template receives the order
object, which contains all of the information related to the purchased order.The developer may start by displaying the order id using the variable order.order_id
.
After that, a for-loop statement is used in order to list the purchased items with their details. For example, item.codes
and item.name
. Other details can also be displayed, such as attached files, with these items, using the array item.files
. Below is a full example of that:Another thing that can be done on this page is to show that the order details have been sent to the customer's email using the variable order.customer.email
along with the order invoice.After that, it would also be good to show store support contact information in case the customer needs to contact the store owner. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅 提升

扫码加入交流群Modified at 2025-02-20 07:53:20