Browse - Prices and Simple Discounts on Product Listing

Add price and tax information to your product pages. Learn how Ucommerce applies price information to your products based on your catalog configuration and how the products can have multiple prices.

 


Relevant APIs

 

 

UCommerce.Api
CatalogLibrary.CalculatePrice(Product, ProductCatalog)
    PriceCalculation
YourPrice <-- Price incl simple discounts
ListPrice
Discount
YourTax
IsDiscounted
    Price
AmountExclTax
Amount
AmountInclTax
    UCommerce.EntitiesV2
Product
ProductCatalog

Hands-on

On the productViewModel you need to set the PriceCalculation coming from the API.

 


Bonus

Set up a unit discount and display the discount on the product listing. Add the original price with a dash through if the price is discounted-

 

{{lineitem.ProductName}}

{{lineitem.VariantName}} - {{lineitem.Quantity}} x {{lineitem.FormattedPrice}} {{lineitem.FormattedPrice}}

Your cart is empty ;(
Total {{basket.FormattedProductsTotal}}
Checkout