1. Home
  2. Docs
  3. Advanced Split Shipment (M2)
  4. How Does the Extension Work?
Download PDF

How Does the Extension Work?

Let us check how the extension works with all the split conditions. Before that set an attribute at the admin as to which the order has to be spit. Suppose we have set the attribute as color and attribute option as black.

Note – These are the product attribute having possible attribute values which are retrieved from finite source(select, multi-select). Along with this, the attribute must be assigned to the default attribute set.

Case 1 – Default Condition
If the Split order condition is set as default than according to this condition if an order is placed then the shipment will split according to the number of items in that order irrespective the attribute is there or not.

Adding the product to cart
There are four items added in the cart and one of the items has the attribute (color-black) which is set as a split attribute at the backend.

Place order
Once the products are added in the cart click on place order to complete the transaction. There will be only one order Id generated even though the order has multiple items in it.

Shipment Details
Navigate to the Magento admin panel > Sales > Orders. Locate the order number of the order placed recently in this case, it is 000000141. Click on view to check the details of the order.

On order and account information page go to shipments to view the shipment related information. As per the default condition, the shipment will be split according to the number of items in the order. We can see in the image below that the order had four items, therefore, four shipments are created.

Case 2 – Split If Attribute Exists
If the Split order condition is set as “Split if attribute exists” then according to this condition if the items added in the cart has the attribute it will split the shipment as per the items in the order. And if the attribute is not present in the order then there will be no shipment created.

(i) Adding the products in cart with the attribute
There are three items added in the cart and one of the items has the attribute (color-black) which is set as a split attribute at the backend.

Place Order
Once the products are added in the cart click on place order to complete the transaction. There will be only one order ID generated even though there are multiple items in the order.

Shipment Details
Navigate to the Magento admin panel > Sales > Orders. Locate the order number of the order placed recently in this case, it is 000000142. Click on view to check the details of the order.

On order and account information page go to shipments to view the shipment related information. As per the “split if attribute exists condition, the shipment will be split according to the number of items in the order as the attribute exists in this order. We can see in the image below that the order had three items, therefore, three shipments are created.

(ii) Adding products to the cart without Attribute
Next, we will add four items with no selected attribute in it.

Place Order
Once the products are added in the cart click on place order to complete the transaction. There will be only one order Id generated even though the order has multiple items in it.

Shipping Details
Navigate to the Magento admin panel > Sales > Orders. Locate the order number of the order placed recently in this case, it is 000000143. Click on view to check the details of the order.

On order and account information page go to shipments to view the shipment related information. As per the “split if attribute exists condition, there will be no shipment created as the attribute does not exist in this order. We can see in the image below that the order had four items but no shipment is created.

Case 3 – Split according to attribute
If the Split order condition is set as “Split according to attribute” then according to this condition if the items added in the cart has the attribute it will split the shipment into two parts one shipment having the items with attribute and the second shipment having all other items without the attribute.

Adding product to the cart
There are four items added in the cart and two of the items has the selected attribute (color-black) which is set as a split attribute at the backend and rest two items is without the selected attribute.

Place Order
Once the products are added in the cart click on place order to complete the transaction. There will be only one order Id generated even though the order has multiple items in it.

Shipment Details
Navigate to the Magento admin panel > Sales > Orders. Locate the order number of the order placed recently in this case, it is 000000145. Click on view to check the details of the order.

On order and account information page go to shipments to view the shipment related information. As per the “split according to attribute” condition, the shipment will into two shipments one with the items having the attribute and the second shipment without the attribute. We can see in the image below that the order had four items, and two shipments are created.

Note – Advanced Split Shipment is not compatible with bundle products

Download Guide
Was this article helpful to you? Yes No

How can we help?