Order product Loop
Order product loop displays Order products information.
{loop type="order_product" 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 |
|---|---|
| id |
A single or a list of order product ids. example : id="2", id="1,4,7" |
| order * |
A single order id. example : order="2" |
| virtual |
A boolean value. example : new="yes" |
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 Order_product |
| $UPDATE_DATE | The last modification date of this Order_product |
Loop outputs
| Variable | Description |
|---|---|
| $CART_ITEM_ID >= 2.4 | The related Cart Item ID of this order product |
| $CHAPO | the order product short description |
| $DESCRIPTION | the order product description |
| $EAN_CODE | the product ean code |
| $ID | the order product id |
| $PARENT | the parent product in the cart, if the current product has one |
| $POSTSCRIPTUM | the order product postscriptum |
| $PRICE | the order product price (unit price) |
| $PRICE_TAX | the order product taxes (unit price) |
| $PRODUCT_SALE_ELEMENTS_REF | the order product sale elements reference |
| $PROMO_PRICE | the order product in promo price (unit price) |
| $PROMO_PRICE_TAX | the order product in promo price taxes (unit price) |
| $QUANTITY | the order product ordered quantity |
| $REF | the order product reference |
| $TAXED_PRICE | the order product price including taxes (unit price) |
| $TAXED_PROMO_PRICE | the order product in promo price including taxes (unit price) |
| $TAX_RULE_DESCRIPTION | the tax rule description for this item |
| $TAX_RULE_TITLE | the tax rule title for this item |
| $TITLE | the order product title |
| $TOTAL_PRICE >= 2.3 | the order product price (total price) |
| $TOTAL_PROMO_PRICE >= 2.3 | the order product in promo price (total price) |
| $TOTAL_TAXED_PRICE >= 2.3 | the order product price including taxes (total price) |
| $TOTAL_TAXED_PROMO_PRICE >= 2.3 | the order product in promo price including taxes (total price) |
| $VIRTUAL | whatever the order product is a virtual product or not |
| $VIRTUAL_DOCUMENT | the name of the file if the product is virtual. |
| $WAS_IN_PROMO | whatever the order product sale elements was in promo or not |
| $WAS_NEW | whatever the order product sale elements was new or not |
| $WEIGHT | the order product sale elements weight |