Discussing APIs and development related to customers, discounts, and order management.
Hello!
I created automatic order discount by using Graph Admin API (discountAutomaticAppCreate).
This is my use case: In checkout, user can use 1 automatic order discount and 1 discount code. To discount code can apply with automatic order discount, when create discount code, i must set discount code can combine with order discount. But this can cause user can apply multiple order discount codes.
So, how to i can set user can apply 1 automatic order discount and only 1 discount code.
Please help me.
Thank in advance.
Solved! Go to the solution
This is an accepted solution.
Hey @vy2902
Shopify's discount system allows customers to use either one automatic discount or one discount code per order. This means that if a customer has an automatic discount applied to their order and then they enter a discount code, the discount code will override the automatic discount.
In your case, where you want to allow customers to use both an automatic discount and a discount code in the same order, the only possible solution right now is to set the 'Combine Discounts' option when creating the discount code. But as you've mentioned, this could potentially allow customers to use multiple discount codes.
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @vy2902
Shopify's discount system allows customers to use either one automatic discount or one discount code per order. This means that if a customer has an automatic discount applied to their order and then they enter a discount code, the discount code will override the automatic discount.
In your case, where you want to allow customers to use both an automatic discount and a discount code in the same order, the only possible solution right now is to set the 'Combine Discounts' option when creating the discount code. But as you've mentioned, this could potentially allow customers to use multiple discount codes.
Scott | Developer Advocate @ Shopify
Thank you so much