Skip to main content

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


smarenich
Acumatica Moderator
Forum|alt.badge.img+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. 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings