Appearance
Order tag
The orders tag getting a list of orders.
The tag
{exp:reinos_store:orders}Pagination is following the ExpressionEngine standard. See https://docs.expressionengine.com/latest/templates/pagination.html#pagination for the implementation guide.
Tag Parameters
Below are the Tag Parameters. Those parameters can be used in the tag described above
prefix
Prefix the variables
prefix="order:"order_ids
Get multiple orders by their order ID's. You can use a pipeline delimiter to get multiple order ID's
order_ids="1|2|3"hash
Set a hash for the order you want to fetch
hash=""member_id
Select all orders for the given member_id
member_id=""status
Filter based on the status.
Possible options: open pending complete failed expired cancelled refunded paid_chargeback. Separate more statuses with a |.
status="open"
status="complete|refunded"limit
The number of orders, default 50.
limit="50"sort
The sort direction, desc (default) or asc. Available from v4.0.0, before it was the order param, which still works.
sort="desc"order_by
Possible options are status order_id time
order_by="order_id"Tag Variable
Below are the Tag Variables. Those Variables can be used in the tag described above
no_results
Check if there is any result
{if no_results}...{/if}order:count
The current count of the order in the loop
{order:count}order:total_results
The total count of the orders in the loop
{order:total_results}order:absolute_total_results
The total count of the orders in the loop, ignoring pagination
{order:absolute_total_results}Pagination
It support the standard pagination tags of ExpressionEngine. See https://docs.expressionengine.com/latest/templates/pagination.html#pagination for the implementation guide.
### order:can_complete
Check if we still cancan pay the order.
Some providers support to pay after the order has been created but somehow is now paid and still `open`{if order:can_complete } Your order is not yet payed, finish your order by clicking here.
### order:payment_url
The payment url, used when the order is open and should be paid{if order:can_complete } Your order is not yet payed, finish your order by clicking here.
### order:order_id
### order:sync_order_entry_id
This is the entry that is synced to this order
### order:time
### order:transaction_id
### order:status
The status: `open`, `pending`, `complete`, `cancelled`, `refunded`, `failed`, `expired` or `paid_chargeback`. Use this
one in a conditional, it doesn't change with the language. To show the status, use
[order:status_label](#order-status-label). Before v4.0.0 this was the label of the status.{if order:status == 'complete'} ...
### order:status_label
The label of the status, translated: `Open`, `Pending`, `Complete`, `Cancelled`, `Refunded`, `Failed`, `Expired` or
`Paid (chargeback)`.
*Available from v4.0.0*
### order:customer_company
### order:customer_first_name
### order:customer_last_name
### order:customer_email
### order:customer_phone
### order:billing_address
### order:billing_address2
### order:billing_zip
### order:billing_city
### order:billing_country
The ISO-2 lang code.
### order:billing_country_full_name
The full country name
### order:billing_state
The ISO-2 state code.
### order:billing_state_full_name
The full state name
### order:shipping_address
### order:shipping_address2
### order:shipping_zip
### order:shipping_city
### order:shipping_country
The ISO-2 lang code.
### order:shipping_country_full_name
The full country name
### order:shipping_state
The ISO-2 state code.
### order:shipping_state_full_name
The full state name
### order:items
Loop over the items in the order{order:items} {order:items:name} {order:items:price} {order:items:price:formatted} {order:items:old_price} // when dealing with a sale price, this is the original_price {order:items:old_price:formatted} // when dealing with a sale price, this is the original_price {order:items:tax} {order:items:tax:formatted} {order:items:tax_rate} {order:items:price_plus_tax} {order:items:price_plus_tax:formatted} {order:items:old_price_plus_tax} // when dealing with a sale price, this is the original_price {order:items:old_price_plus_tax:formatted} // when dealing with a sale price, this is the original_price {order:items:qty} {order:items:sku} {order:items:entry_id} // the entry that is connected to this item {order:items:disable_shipping} {order:items:price_total} {order:items:price_total:formatted} {order:items:old_price_total} // when dealing with a sale price, this is the original_price {order:items:old_price_total:formatted} // when dealing with a sale price, this is the original_price {order:items:price_total_plus_tax} {order:items:price_total_plus_tax:formatted} {order:items:old_price_total_plus_tax} // when dealing with a sale price, this is the original_price {order:items:old_price_total_plus_tax:formatted} // when dealing with a sale price, this is the original_price {order:items:custom_fields} {order:items:custom_fields:label} {order:items:custom_fields:value} {order:items:custom_fields:is_modifier} {order:items:custom_fields:modifier:price} {order:items:custom_fields:modifier:price:formatted} {order:items:custom_fields:modifier:price_plus_tax} {order:items:custom_fields:modifier:price_plus_tax:formatted} {/order:items::custom_fields} {order:items:on_sale} // bool if the product is on sale {order:items:sync_order_items_entry_id} // this is the entry item that is synced to this order item {order:items:note}
### order:subtotal_before_discount
### order:subtotal_before_discount_plus_tax
### order:subtotal
### order:subtotal_plus_tax
### order:discount
### order:total
### order:total_plus_tax
### order:tax
### order:shipping
### order:shipping_plus_tax
### order:has_free_shipping
Indicate if the order has free shipping by any discount/free shipping rule
### order:entry_ids
Hold all entry_ids as a pipeline delimited string
### order:custom_fields
Get the custom fields that are used in the checkout tag{order:custom_fields} {order:custom_field:name}:
### order:is_paid
Show if the order is paid or not
### order:is_reverse_charge_eu
This flag indicate if we deal with a customer that has no TAX calculated
*Note: this will only be updated if you have installed the TAX module. See (https://addons.reinos.nl/store-tax)[https://addons.reinos.nl/store-tax]*
### cart:member_id
The member_id of the member that is attached to this order.
### order:tax_details
The Tax Details tag pair can give you a summary of the TAX. It holds multiple entries when you have multiple tax rates applied to the Order.
*Available from v3.6.0*{order:tax_details} {order:tax_details:info} // if you have installed the Tax Module, the info field of the applied rule is shown here {order:tax_details:rate} {order:tax_details:amount} {order:tax_details:amount:formatted} {order:tax_details:count} // current count of the item {order:tax_details:total_results} // total count of the items
### order:shipping_method
Return the method for shipping. Please note this is the value of the setting `Shipping Label`.
*Available from v3.7.0*
### order:shipping_status
Return the status of the shipment. This is only used when the setting `Manage Shipping Status` is enabled, or for the orders of [Store MyParcel](/store-my-parcel/) and [Store Pickup](/store-pickup/).
*Available from v3.7.0*
### order:is_pickup
Check if the shipping method is a pickup method.
*Available from v3.7.2*
### order:is_picked_up
Check if the order has been picked up.
*Available from v3.9.0*
### order:is_shipped
Check if the order has been shipped: the shipping status is *shipped* or *parcel shipped*, or an add-on such as Store
MyParcel says so for its own shipping statuses (see the [reinos_store_is_shipped](hooks.md#reinos-store-is-shipped)
hook).
*Available from v4.0.0*{if order:is_shipped}Shipped
### order:gateway
Return the gateway name that is used for this order. e.g. `mollie` `manual` or `stripe`.
*Available from v3.0.0*
### order:gateway_label
Return the label of the gateway that is used for this order, as set in the gateway settings in the CP. Without a label it is the default label of the gateway (e.g. `Stripe (on-site, card)`), or the gateway name made
readable (e.g. `Stripe elements` for `stripe_elements`) when the gateway no longer exists. Use `{order:gateway}` for conditionals.
*Available from v3.12.0*