Automaticly plit orders / prevent orders based on products?

Getem
Tourist
8 0 0

Hello Community,

I have a problem that we actually need different orders for different product categories.

Solution A:
When a customer places an order, it would need to be split into 2 to 3 different purchase orders (depending on the product category or product storage location).

Solution B:
Alternatively, a solution would be to prevent different products from being ordered together.

Do you have any idea how to implement one of these solutions?

Best regards
Florian

Reply 1 (1)

rp90
Shopify Partner
8 0 5

Hi @Getem ,

To achieve the functionality of splitting orders based on product categories, you can create a custom or private app for your Shopify store.

Here's how you can implement it:

Set up a webhook for the orders/create event: This webhook will notify your application whenever a new order is created. Specify the URL of your application or endpoint where you want to receive the webhook payload.

Split the order based on product categories: Analyze the products in the order and identify their categories using tags or meta fields. Implement logic in your application to split the order into multiple purchase orders based on the product categories. 

Create separate purchase orders: Use the Shopify Admin API's POST /admin/api/2022-04/orders.json endpoint to create separate purchase orders for each product category identified. Ensure that you include the correct line items and order details in each new purchase order.

Optionally, you can use existing third-party apps: There are also third-party apps available on the Shopify App Store, such as 'Split Order' or 'Order Fulfillment', which can help with order splitting functionality. You can explore these apps and see if they meet your specific requirements.

I hope this guide helps you implement the desired functionality. If you have any further questions or need assistance, feel free to ask. Good luck!


Best regards,
RP

 

Building E-commerce Dreams on Shopify | Seeking Collaborative Solutions