Re: Valid discount code passed as a query parameter to checkout but It's not applying to order

Solved

Valid discount code passed as a query parameter to checkout but It's not applying to order

vaibhavrathod
Shopify Partner
16 1 9

For the last 10-15 Days, 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, we found out that Shopify has changed the Checkout Link from their end. Please check the link-related changes below:

 

Old link (Classic Link): https://yourstore.myshopify.com/27939897426/checkouts/f4809b35efd99191161bb6254c799bf1?discount=FLIT...

 

New link:- https://yourstore.myshopify.com/checkouts/c/e72409b3f943baae3973ddaf47be662b/information?discount=FL...

We have to check this in our Dev Store, where the Classic link is currently in use, and in that link, the Discount code is getting applied however when we are testing this through Checkout Link (Which is updated by Shopify), then the Discount Code is not getting applied.

We have reached us to Shopify support Multiple times now and as of now, we have not received any help from their end the issue is still on the rise and heavily impacting our Merchant's daily operations.

So, the question we have asked Shopify Support on this was whether will our Discount Query Parameter will run on the new Checkout link. If yes, then what are the steps to follow & review it? If not, then what can be the alternative solution to this issue faced by our merchants and us?

Accepted Solution (1)

vaibhavrathod
Shopify Partner
16 1 9

This is an accepted solution.

Last week Shopify team has been resolved this issue 🙂

 

Thank you all of you 🙂

View solution in original post

Replies 17 (17)

Greg_Finzer
New Member
7 0 0

I figured out the new format.  

 

So here is the old format to add an item to a cart and then apply the discount:

https://kellermansoftware.com/cart/2927507139:1/?discount=GOLD-TEST

 

This is the new format which applies the coupon code and then redirects to the cart page and adds the item:

https://kellermansoftware.com/discount/GOLD-TEST?redirect=%2fcart%2f2927507139:1

 

Thanks,
Greg
vaibhavrathod
Shopify Partner
16 1 9

We tried that but we are facing a CORS error.

We provide one example can you please help me to set up a new format give my example and send it to me, it would be great for us,

wiiiiiiiika
Shopify Partner
6 0 3

Hey, we are hitting this issue, beside discount code, all checkout query parameters below not working.

 

did you find solution?

 

Screenshot 2022-10-30 at 4.24.50 PM.png

Tom739
Excursionist
24 0 11

I think we are also being affected by this change in the checkout url (to which we conditionally add discount codes based on customer tags). I would be very interested in a solution or at least a workaround as it seems to be affecting a growing number of our users.

Tom739
Excursionist
24 0 11

We have not seen the issue for about a week now. Do you guys still see it? 

wiiiiiiiika
Shopify Partner
6 0 3

We also not seen this issue in recent days. Shopify seems fix this issue in background. But not sure Shopify side really fix it as we found there could be a case that this issue appear again from the past experience.

vaibhavrathod
Shopify Partner
16 1 9

This is an accepted solution.

Last week Shopify team has been resolved this issue 🙂

 

Thank you all of you 🙂

Tom739
Excursionist
24 0 11

Hello! 

Would you mind sharing what exactly the issue was and what was solved by Shopify team? It could help other users making sure their own problem has been fixed (or not).

Thanks!

Thomas

wiiiiiiiika
Shopify Partner
6 0 3

For the last 20 to 30 days, when creating a cart permalink, checkout query parameters like checkout[shipping_address][country]=HK not getting applied from the Cart to the Checkout for several shopify merchants. When our tech team analyzed the cause for this, we found out that Shopify has changed the Checkout Link from their end. Please check the link-related changes below:

 

Old link (Classic Link): https://yourstore.myshopify.com/27939897426/checkouts/f4809b35efd99191161bb6254c799bf1

 

New link:- https://yourstore.myshopify.com/checkouts/c/e72409b3f943baae3973ddaf47be662b/information

We have to check this in our Dev Store, where the Classic link is currently in use, and in that link, the shipping address is getting applied, however when we are testing this through Checkout Link on our merchant production store (Which is updated by Shopify), then the shipping address is not getting applied.

 

Findings

 

We found if Shopify uses the new link redirect to checkout page, shopify sometimes makes a proposal operation graphQL call, then this issue will not happen, checkout form will respect the query parameter provided in permalink and preload the related shipping address fields.

We run 70 tests, but only 3 tests Shopify will trigger this proposal graphQL operation. So we are not sure when Shopify will trigger this graphQL operation.

 

Request URL: https://youstore.myshopify.com/checkouts/unstable/graphql

 

Operation name: proposal

 

shopify_checkout_issue.png

 

 

Tom739
Excursionist
24 0 11

There was a new case yesterday night (Nov 23). Is the issue really fixed?

Tom739
Excursionist
24 0 11

More cases start appearing.

I guess Shopify had temporarily removed the change that was causing the error and is now deploying it back.

wiiiiiiiika
Shopify Partner
6 0 3

This issue happen again in 2022-12-09, we can 100% reproduce that, all our users are hitting this issue.

Tom739
Excursionist
24 0 11

Same here. The issue is widespread again. 

Is there any Shopify staff that could address this issue ?

wiiiiiiiika
Shopify Partner
6 0 3

We contacted Shopify support, but still not get response from them..

Tom739
Excursionist
24 0 11

We also contacted Shopify Support and as usual they are trying to find any way possible to prove that the problem is not a problem or that the problem is caused by something not supported.

Still waiting for their next reply.

Chris523
Shopify Partner
3 0 1

Our app pre-fills address for customers, and it also stopped working recently. Does anyone find any solution or workaround?

Tom739
Excursionist
24 0 11

No solution and Shopify Support closed our ticket. 
The issue keeps appearing. The new checkout url system is broken.