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

Find the “BasketController”The method “Index” renders the view “/views/Basket.cshtml” with the PurchaseOrderViewModelMap the customer’s basket into the viewModel 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