Order details
Tags, loops and template examples related to displaying order details in Customer Center
Available tags
Ecom:Cart.CheckoutToQuote
Returns True if the cart set up to create quote during checkout.
@GetBoolean("Ecom:Cart.CheckoutToQuote")
Ecom:Cart.CreateUserInCheckout
Returns True if the cart set up to create new user during checkout.
@GetBoolean("Ecom:Cart.CreateUserInCheckout")
Ecom:Cart.EmptyCartLink
Returns a link that can be used to empty the Cart.
@GetString("Ecom:Cart.EmptyCartLink")
Ecom:Cart.LoyaltyPointBalance.Price
Returns amount of loyalty points in currency related to user currently logged.
@GetString("Ecom:Cart.LoyaltyPointBalance.Price")
Ecom:Cart.UseNewsletterSubscription
Returns the state of the newsletter subscription checkbox.
@GetBoolean("Ecom:Cart.UseNewsletterSubscription")
Ecom:Cart.ValidationError.[Field].ErrorMessage
Returns an error message if the field returns an error.
@GetString("Ecom:Cart.ValidationError.[Field].ErrorMessage")
Ecom:Cart.ValidationError.[FieldSystemName].ErrorMessage
Returns the validation error message associated with the particular field.
@GetString("Ecom:Cart.ValidationError.[FieldSystemName].ErrorMessage")
Ecom:Order.Currency
Returns the currency that the orders is created with.
@GetString("Ecom:Order.Currency")
Ecom:Order.Customer.Accepted
Returns True if the customer has accepted order terms and conditions. If not the tag outputs an empty string.
@GetString("Ecom:Order.Customer.Accepted")
Available loops
Countries
The Countries
loop lets you display information about countries.
@foreach (LoopItem item in GetLoop("Countries")){ <p>@item.GetValue("TagName")</p> }
CustomerRegions
The CustomerRegions
loop lets you display information about regions of the customer, related to region list in Country definition.
@foreach (LoopItem item in GetLoop("CustomerRegions")){ <p>@item.GetValue("TagName")</p> }
CustomFieldList
The CustomFieldList loop lets you display information about custom product fields.
@foreach (LoopItem item in GetLoop("CustomFieldList")){ <p>@item.GetValue("TagName")</p> }
DeliveryRegions
The DeliveryRegions
loop lets you display various information about the regions, based on the regions defined for the dilivery country selected..
@foreach (LoopItem item in GetLoop("DeliveryRegions")){ <p>@item.GetValue("TagName")</p> }
DiscountValidationResults
The DiscountValidationResults loop lets you display information about discounts not applied in the order.
@foreach (LoopItem item in GetLoop("DiscountValidationResults")){ <p>@item.GetValue("TagName")</p> }
GiftCards
The GiftCards loop lets you display all the gift cards bought during the checkout.
@foreach (LoopItem item in GetLoop("GiftCards")){ <p>@item.GetValue("TagName")</p> }
MasterProducts
Returns product information like Products loop.
@foreach (LoopItem item in GetLoop("MasterProducts")){ <p>@item.GetValue("TagName")</p> }
MissingProducts
The MissingProducts
loop lets you display the products that are no longer available in the cart.
@foreach (LoopItem item in GetLoop("MissingProducts")){ <p>@item.GetValue("TagName")</p> }
Orderlines
The Orderlines loop lets you display information about the orderlines (product, discount and tax lines) in an order.
@foreach (LoopItem item in GetLoop("Orderlines")){ <p>@item.GetValue("TagName")</p> }
Paymethods
The Paymethods
loop lets you display information about payment methods.
@foreach (LoopItem item in GetLoop("Paymethods")){ <p>@item.GetValue("TagName")</p> }
SavedCards
The SavedCards
loop lets you display information about all saved cards..
@foreach (LoopItem item in GetLoop("SavedCards")){ <p>@item.GetValue("TagName")</p> }
Shippingmethods
The Shippingsmethods
loop lets you display information about shipping methods.
@foreach (LoopItem item in GetLoop("Shippingmethods")){ <p>@item.GetValue("TagName")</p> }
ShippingTaxes
The ShippingTaxes loop lets you display various information about the shipping taxes that are applied to the order by e.g. the Avalara tax provider.
@foreach (LoopItem item in GetLoop("ShippingTaxes")){ <p>@item.GetValue("TagName")</p> }
ShippingTaxesGrouped
The ShippingTaxesGrouped loop lets you display various information about the taxes that are applied to the order by e.g. the Avalara tax provider.
This loop groups the taxes and renders the total tax for each provider.
@foreach (LoopItem item in GetLoop("ShippingTaxesGrouped")){ <p>@item.GetValue("TagName")</p> }
StepButtons
The StepButtons
give you the possibility to render the 3 cart steps: Show cart, Information, Checkout.
@foreach (LoopItem item in GetLoop("StepButtons")){ <p>@item.GetValue("TagName")</p> }
TaxProviderErrors
The TaxProviderErrors loop lets you display tax errors from the tax provider.
@foreach (LoopItem item in GetLoop("TaxProviderErrors")){ <p>@item.GetValue("TagName")</p> }
UsedGiftCards
The UsedGiftCards loop lets you display all the gift cards used during the checkout.
@foreach (LoopItem item in GetLoop("UsedGiftCards")){ <p>@item.GetValue("TagName")</p> }
ValidationErrors
The ValidationErrors
loop lets you display validation errors for fields in the order.
@foreach (LoopItem item in GetLoop("ValidationErrors")){ <p>@item.GetValue("TagName")</p> }