All things Shopify and commerce
I have a problem that we actually need different orders for different product categories.
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).
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?
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!
We're excited to announce improvements to the threaded messaging experience in our communi...By TyW May 31, 2023
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...By Jacqui May 30, 2023
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...By Ollie May 25, 2023