Checkout - Shipping Method

Display available shipping methods for the customer to select. Shipping methods can be filtered on the store and country level.

 


Relevant APIs

 

 

UCommerce.Api
    TransactionLibrary.GetShippingInformation()
    TransactionLibrary.GetShippingMethods(country = null)
    TransactionLibrary.GetShippingMetw3hod(shipmentName = null)

UCommerce.EntitiesV2 Shipment
ShippingMethod GetPriceForCurrency(currency) UCommerce Money(amount, currency)

Hands-on

Navigate to “Shipment.aspx.cs”. The method Page_Load loads the available shipment methods and populates Shipment.aspx.


 

Update Selected Shipping Method

Relevant APIs

UCommerce.Api
TransactionLibrary.CreateShipment(
shippingMehtodId,
addressName = null,
overwritingExisting = true)

TransactionLibrary.ExecuteBasketPipeline()

Hands-on

In the eventhandler of the “Continue to payment”-button on the shipment page, create a new shipment based on selected shippingmethod.

{{lineitem.ProductName}}

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

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