Cart Loop
Cart loop displays cart information.
{loop type="cart" name="the-loop-name" [argument="value"], [...]}Important informations :
* : argument is required
** : at least one of ** marked argument is required
Global arguments
| Argument | Description |
|---|---|
| backend_context |
Determine if loop is use in backend context. default : false example : backend_context="on" |
| force_return |
force return result for i18n tables even if there is no record default : false example : force_return="on" |
| limit |
The maximum number of results to display. example : limit="10" |
| name * |
The loop name. This name must be unique and is used to reference this loop further in the page (see ifloop, elseloop or pageloop) |
| offset |
The first product to display offset. Will not be used if `page` argument is set. default : 0 example : offset="1" |
| page |
The page to display. example : page="2" |
Loop arguments
| Argument | Description |
|---|---|
| order |
A list of values
Expected values :
default : reverse example : order="reverse" |
Global outputs
| Variable | Description |
|---|---|
| $LOOP_COUNT | the current results index, starting from 1 |
| $LOOP_TOTAL | the total number of results returned by the loop |
| $CREATE_DATE | The creation date of this Cart |
| $UPDATE_DATE | The last modification date of this Cart |
Loop outputs
| Variable | Description |
|---|---|
| $IS_PROMO | if the product sale elements is in promo or not |
| $ITEM_ID | the cart item id |
| $PRICE | the product sale elements price (unit price) |
| $PRODUCT_ID | the product id |
| $PRODUCT_SALE_ELEMENTS_ID | the product sale elements id |
| $PRODUCT_URL | the product url |
| $PROMO_PRICE | the product sale elements in promo price (unit price) |
| $PROMO_TAXED_PRICE | the product sale elements in promo price including taxes (unit price) |
| $QUANTITY | the cart item quantity |
| $REF | the product ref |
| $STOCK | the product sale elements available stock |
| $TAXED_PRICE | the product sale elements price including taxes (unit price) |
| $TITLE | the product title |
| $TOTAL_PRICE >= 2.3 | the product sale elements price (total price) |
| $TOTAL_PROMO_PRICE >= 2.3 | the product sale elements in promo price (total price) |
| $TOTAL_PROMO_TAXED_PRICE >= 2.3 | the product sale elements in promo price including taxes (total price) |
| $TOTAL_TAXED_PRICE >= 2.3 | the product sale elements price including taxes (total price) |