Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to use Shopify Functions' shipping discount and discount code simultaneously?

How to use Shopify Functions' shipping discount and discount code simultaneously?

leee
Shopify Partner
5 0 0

Can users use shipping discounts and order discounts from Shopify functions simultaneously, along with regular discount codes?

 

When I use shipping discounts, it seems that the shipping discount occupies the discount code , and I cannot use them simultaneously. I am currently still using the checkout API due to limited technical resources.

Replies 4 (4)

topshop
Shopify Partner
166 15 19

@leee , can you double-check if you've set up the discounts to be able to combine? Here's a screenshot of a function product discount (SUMMER20) that combines with Shopify's shipping discount (FREESHIP). Both apply at the same time:

topshop_0-1723128071081.png

 

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion
leee
Shopify Partner
5 0 0

Let me clarify again, I am using the checkout api. This api has only one parameter
{
"checkout": {
"discount": {
"title": "test001",
"code": "test001",
"applicable": true
},
"shipping_rate": {
"id": "shopify-%E9%A1%BA%E4%B8%B0%E7%89%B9%E6%83%A0-54.00",
"price": "0.00",
"title": "SF Express"
},
"email": ""
}
}
As shown above, I found that this parameter in the api conflicts with the shipping discount of shopify functions. When I apply the discount code, the shipping rate is no longer discounted.

leee
Shopify Partner
5 0 0

CleanShot 2024-08-09 at 16.06.01@2x.png

CleanShot 2024-08-09 at 16.05.15@2x.png

  You can check these screenshots. When I didn't fill in the discount, the postage was 12 yuan, which is what I expected. But when I used test001, the postage returned to 36 yuan.

topshop
Shopify Partner
166 15 19

It looks like shipping_rate is not writable. Maybe that's the issue?

topshop_0-1723221349784.png

 

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion