All things Shopify and commerce
@DonShopifyGuru @ShopifyGuru1 @Trevor
Again and again, the same issue is happening, the automatic discount code is not getting applied from the cart to the checkout for several merchants, and when our tech team analyzed the cause for this.
Keep note - Sometimes is working or sometimes not working, Discount code is available in the query parameter but is not applied automatically in a discount box on the checkout page.
Facing the same issue.
We have been experiencing the same issue for the last few days.
We are having the same issue.
This happened last year :
https://community.shopify.com/c/shopify-discussions/valid-discount-code-passed-as-a-query-parameter-...
Hey, it's Tobe from Regios Automatic Discounts.
Is there a specific reason you're using discount codes instead of automatic discounts, if you want discounts automatically applied to the user's cart?
I'm not 100% sure I understand your use case, but it's possible that with some more details, I could identify the cause. I've done some work using discounts in Shopify recently, so maybe something I learned could be useful, even if it doesn't directly solve your problem.
Hello Tobe!
The situation here,
regarding the address that the discount code was sent to the checkout page.
Ex:
/checkout?discount=XXXXX
This discount code parameter does not always apply the code.
Shopify removed this feature due to privacy reasons. Instead use the following workaround:
https://store.myshopify.com/discount/DISCOUNT_CODE?redirect=/checkout
//my example
let baseUrl = window.location.protocol + "//" + window.location.hostname;
checkout.attr('href', `${baseUrl}/discount/${discountCode}?redirect=/checkout`);
Yes, thank you for your answer
But how to apply 2 discount code your example url? Any idea would be great for us.
I have tried this, but it gets stuck and doesn't redirect to the checkout for some reason. I added the url to the form action and it just goes to the page and never redirects.
Weird, I reverted back to the old method and it's not working either. Shows the discount code in the url, but not on the checkout page. Any insight would be greatly appreciated. This is what I have on the post action:
/cart?discount=[discount code]
We are facing the same issue 😕
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024