Checkout - View Basket

Customers need an overview of what they're about to buy as well as a way to manage the items they've put in their basket.

 


Relevant APIs

 

 

UCommerce.Api
TransactionLibrary.GetBasket().PurchaseOrder

UCommerce.EntitiesV2
PurchaseOrder
OrderLines
Discounts
OrderLine
Discount

UCommerce
Money

Hands-on

Navigate to the file “Basket.aspx.cs” The method “Page_Load” loads relevant data and populates the PurchaseOrderModel, which is then used to render Basket.aspx. Map the customer’s basket into the PurchaseOrderModel by grabbing the order from the TransactionLibrary.

 

{{lineitem.ProductName}}

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

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