cancel
Showing results for 
Search instead for 
Did you mean: 

Order Splitting based on Company

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think it's not a good idea to generate multiple orders at a point where you process one order, so it seems better to do that at an earlier point. You should create multiple orders from the cart directly. Or already separate the cart into multiple like the Telco store does it.

Can't tell you more on this, but I have read that each Telco bundle you configure in the cart is actually a cart object by itself contained in a master cart or something.

I would recommend to do the same thing for you problem, because then each cart can have it's own shipping and billing details and is a mirror of the order you will generate later.