Skip to Content
0
Former Member
Apr 27, 2015 at 07:40 PM

Order Splitting based on Company

264 Views

Hi,

Our B2B client sells products belonging to different companies. Client has multiple companies and each company has its own unique set of product catalog.

Consider the following:

 Client
       Company 1 Product Catalog
       Company 2 Product Catalog
       Company 3 Product Catalog

Each company has a different fulfilment strategy in the ERP.

The expectation is that an end customer can add products from different companies (mix of company 1, 2 and 3) in the shopping cnd before placing an order, split the orders into multiple orders; one each per company that has merchandise from the corresponding company.

Essentially, we need to split orders based on company to have something like this -

 Company 1
    Order 1
       Product 1
       Product 2
 Company 2
    Order 2
       Product 3
       Product 4

The default splitting mechanism in hybris entitles to split an order into multiple consignments. However, here we may not split into consignments because the cart needs to be split into multiple orders and each order number is actually generated by ERP.

While we can implement the perform method of interface SplittingStrategy and create an order from within there, I am wondering if this is the right approach.

Please share if someone has implemented similar solution.

Thanks in advance. Saurabh