Pipelines

Integration is a vital part of ecommerce. Whether it is products being synced into the website or orders flowing back to your favorite 3rd party system, a proper
integration needs to be done. In this case, we want to export the order. In this exercise we’ll peek into one of the most core concepts of Ucommerce – Pipelines.

 


Relevant APIs

UCommerce.Pipelines
IPipelineTask<T>
UCommerce.EntitiesV2
PurchaseOrder
OrderNumber

Hands-on

  1. Create a new class for the pipeline task called "ExportOrderToErpSystem".
  2. Register in new app called "ExportOrderToErpSystem" using a component.
  3. Hook into ToCompleted pipeline using partial-component.
  4. Use File I/O to write the OrderNumber into a text file.
{{lineitem.ProductName}}

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

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