Discussing Shopify Functions development, deployment, and usage in Shopify apps.
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.
@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:
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.
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.
It looks like shipping_rate is not writable. Maybe that's the issue?