How-To: Customize Inventory/UOM selection during Sales Order import of the Commerce Connector

  • 9 October 2020
  • 0 replies
  • 221 views

Userlevel 7
Badge +3
  • Acumatica Commerce Edition Team Lead
  • 227 replies

Acumatica Commerce Connector has two steps to identify what Inventory Item should be added to the Sales Order during the import from the Shopping Cart:

  1. Search by ProductID from previously synchronized products.
  2. Search by InventoryID in Acumatica by SKU.

In case proper Inventory Item is found, it will be added to the Sales Order Line. However, in case nothing is found, connector will throw an error.

This process can be controlled with the customization:

//BCSalesOrderProcessor is the main class that performs sales order synchronization.
public class BCSalesOrderProcessorExt : PXGraphExtension<BCSalesOrderProcessor>
{
public delegate String GetInventoryCDByExternIDDelegate(String productID, String variantID, String sku, OrdersProductsType type, out string uom);
[PXOverride]
public String GetInventoryCDByExternID(String productID, String variantID, String sku, OrdersProductsType type,
out string uom, GetInventoryCDByExternIDDelegate baseMethod)
{
//This method should identify the Inventory CD and return it back to the base code.
//Here you can control the inventory selection based on the SKU or product or variant.
return baseMethod(productID, variantID, sku, type, out uom);
}
}

For instance, you can use this approach to parse shopping card SKU and modify UOM of the item.

 

Please note that Shopify and BigCommerce have different processors and have to be customized individually. 


0 replies

Be the first to reply!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved