Cart
Tags, loops and template examples related to the central features of the product shopping cart.
Available tags
CartV2.CheckoutButtonName
Returns a value which can be used to go to checkout.
@GetString("CartV2.CheckoutButtonName")
CartV2.CurrentStepButtonName
Returns a value which can be used to create an Update button to reload the current step.
@GetString("CartV2.CurrentStepButtonName")
CartV2.NextStepButtonName
Returns a value which can be used to create a Next button for moving to the next step of the cart.
@GetString("CartV2.NextStepButtonName")
CartV2.PreviousStepButtonName
Returns a value which can be used to create a Previous button for moving to the previous step of the cart.
@GetString("CartV2.PreviousStepButtonName")
CustomOrderFields
Returns the input field for the custom order field.
Custom order fields can be used to be filled in by customers during checkout. For instance, you can create an order field where customers can enter coupon codes to receive discounts or you can create a checkbox where customers can specify wheter or not they want additional services, such as a product catalog, along with their order.
@GetString("CustomOrderFields")
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.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")
Ecom:Order.Delivery.isPickupPoint
Returns True if a delivery point is selected in the current checkout.
@GetBoolean("Ecom:Order.Delivery.isPickupPoint")
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> }
Ecom:LastAddedProduct.AlternativeImages
Returns the images related to user defined patterns of a product last added to cart.
@foreach (LoopItem item in GetLoop("Ecom:LastAddedProduct.AlternativeImages")){ <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> }
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> }
UserManagement:User.UserAddresses
The UserManagement:User.UserAddresses loop lets you display various information about the user addresses.
@foreach (LoopItem item in GetLoop("UserManagement:User.UserAddresses")){ <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> }