Market variables in templates
Variables
There are four variables for Market:
products
— function selects products
{products("<filter>" 10 "manufacturer_name" "desc")}
sku
— function selects SKUs
{ sku("<filter>" 10 "manufacturer_name" "desc")}
orders
— the function selects orders from the list of profile orders
{orders("<filter>" 10 "status" "asc")}
order
— the function selects one order from the list of profile orders
{order("<filter>")}
Function arguments
("<filter>" 10 "manufacturer_name" "desc")
Argument | Required | Description |
---|---|---|
"<filter>" | Yes | The filter is a string of conditions. Allows you to select products, SKUs, orders, or order lines that meet specified conditions. For example, you can select products from the same manufacturer or orders that exceed a specific cost. See below for details. |
10 | Yes | Limit. How many array elements to iterate over. The maximum value is 30. For example, if you specify 10 , then the filter will select the first ten elements from the array. |
"manufacturer_name" | No | Sort objects by the specified field. By default — no sort. |
"desc" | No | Sort direction.asc — ascending (by default)desc — descending |