Headless - Shopify Buy 'Checkout Url' 302 redirected back to password protected storefront

Headless - Shopify Buy 'Checkout Url' 302 redirected back to password protected storefront

shawngrona
Tourist
5 0 8

We have a headless implementation of Shopify on our site, when a customer checks out from our headless store, we redirect to a url Shopify provides through the shopify-buy sdk.

 

Since last night, Shopify is 302 redirecting back to the root shopify store from the checkout url.   We had to disable password protection on the site so that it would stop redirecting.  This has been running in production with this config for years now, Shopify has changed something.  

 

Steps:

Customer clicks checkout, shopify-buy sdk provides a url for checkout: https://{custom domain}/{shop id??}/checkouts/{checkout id}?key={some special key??}

Shopify 302 redirects to https://{custom domain}/checkouts/co/{checkout id}

Shopify shows shop is password protected message

Replies 18 (18)

MaSchVam
Shopify Partner
13 0 10

We have the exact same issue. If we connect to a VPN and select North American servers, we can go through to the checkout. This seems to be some weird geo-related issue with the API at the moment (Our best guess). We have notified Shopify Partner support and given them a way to reproduce the issue.

Possibly related:
https://community.shopify.com/c/shopify-apis-and-sdks/every-checkout-ends-up-out-of-stock-error/td-p...

shawngrona
Tourist
5 0 8

We opened a ticket with Shopify Support 33234945 but I don't think thats going anywhere bc the conversation was super confused with the support rep.  You know the weird thing is, we have another 'dev' site that is set up exactly the same way w/ password protect and its not redirecting!  Fwiw I am located in North America so I'm hitting North American servers presumably

 

What we ended up doing was removing the password protection from the storefront and then installing a 'headless theme' to redirect away from the our shop subdomain https://github.com/instantcommerce/shopify-headless-theme

 

We also added robots.txt.liquid so that the crawlers will ignore the subdomain

 

This is working well enough for us.

 

 

MaSchVam
Shopify Partner
13 0 10

Thank you for this, we have now done the same - and this works for us atop a degree. We now have infinite redirect issues with this theme - because we use a domain alias and not the standard shop.myshopify.com url.

 

I do hope they resolve the issue at hand, however.

vix
Shopify Staff
541 103 122

Hi Everyone - Are you still experiencing this issue?

To learn more visit the Shopify Help Center or the Community Blog.

Pix
Tourist
9 0 11

Hi!

I am still facing this issue!

Customers cannot order from my site.

- The site uses the Storefront API and other APIs

- The inventory is in a good state according to the Shopify Admin site

- Customers get redirected to /checkouts/co/:id/stock-problems

 

Please help, nothing has changed in our side.

MaSchVam
Shopify Partner
13 0 10

@vix 
Yes, the problem still persists. We are located in Denmark, and from here - disabling password protection sends customers to checkout correctly (I understand that people in other countries aren’t as lucky as me, though).

 

It looks like some redirects are still happening even if it works for us. Something must have changed Shopify-side that relates to geo-location.

RenatKh
Shopify Partner
1 0 0

Hi @vix 

We also have this issue with password protection. And it appears from time to time and mostly on mobile devices.

Please investigate it and fix from your side.

 

tech_pinflag
Shopify Partner
7 0 2

Hi, we are also experiencing this issue with 2 out of 5 accounts that we have implemented the same private app (custom checkout).

We checked Admin and Storefront API permissions, versions, general configuration but the issue persists.

 

Affected account: https://vanitechile.myshopify.com/

Working account: https://pskjoyas.myshopify.com/

 

If you need more info, please let me know. This is a critical issue, and it was working fine until a couple of days ago. We haven't deployed any change in the checkout app.

 

Note: we found a similar thread that was supposed to be fixed, however there are some users reporting occurrences after the fix release.

Thanks in advance, Vix

vix
Shopify Staff
541 103 122

Hi - Thanks for providing the examples. Can you try in incognito or on a new device? I was able to go through the cart to checkout without issues for https://vanitechile.myshopify.com/

To learn more visit the Shopify Help Center or the Community Blog.

tech_pinflag
Shopify Partner
7 0 2

Hi Vix,

 

We have same outcome when using incognito, in vanite store the checkout lands on "information" step, which is not the intended behavior since we are filling all required fieds so that checkout lands directly in "shipping" step.

See video: https://share.vidyard.com/watch/kNaJomxtfEhBVgNnTXpD2a?

 

Screen Shot 2022-10-07 at 11.45.20.png

 

For reference, here's a sample video of pskjoyas, where as you can see, it goes straight into shipping options in checkout: https://share.vidyard.com/watch/YSeGQsAtgwfeKwUh3pmsM1?

Screen Shot 2022-10-07 at 11.45.31.png

 

Hope this helps with finding a solution. Let me know if you need further data or context.

 

Thank you

tech_pinflag
Shopify Partner
7 0 2

Hi Vix, would you mind sharing an update. Thank you.

Jujuba
Shopify Partner
23 0 6

I´ve got the same issue. When will this be fixed?

joe-extreme
Shopify Partner
10 1 1

Just had this on a Storefront API store we manage, the app has been live ~2 years.

 

Disabling password protection worked in this scenario too!

 

Spent 3 hours explaining to a live chat agent that I did not need a Shopify Expert and this was a Shopify issue only Shopify can fix! Why is support for trying to get anything Storefront related fixed so painful???

 

As far as I know it started happening on yesterday for the first time for myself and store owners.

God knows how many orders have been lost to this, may have been happening for customers sporadically for months for all I know.

 

As an update, I do have a support ticket open with the Shopify technical team about this, hopefully they can resolve this!

dheersingh
Shopify Partner
3 0 3

Unfortunately, I am also facing this issue and our live website is experiencing this issue. We have a headless implementation of Shopify on our site, when a customer checks out from our headless store, we redirect to a checkouturl provided by shopify graphql api. Now checkouturl is getting redirected to storefront password page. It was working fine earlier.

 

ElDanés
Shopify Partner
2 0 0

Same issue just started happening to my custom storefront on https://toma.cafe removing password also seems to have solved my issues...

 

//Christian

joe-extreme
Shopify Partner
10 1 1

So if you want password protection enabled on your store again and you are lucky enough to have your ticket escalated to the technical team after spending a few hours speaking to level 1 chat agents, they can put in a temp fix for your website, but, the underlying problem will not be resolved for those who don't create a ticket for... an unknown period of time.

 

In regards to the checkout creation, we've identified in our investigation what may be causing the unexpected redirect. We've applied a temporary solution for this issue on your store going forward and you can feel free to re-enable xxx.myshopify.com's storefront password. As a part of our ongoing efforts to improve the checkout design and function, Shopify developers are working on a longer term solution to support all merchants in your circumstances. As I wouldn't have a timeframe for when this will be implemented, myself or my team will update you as soon as we have confirmation of completion from our developers.

 

abater
Shopify Partner
8 0 2

Does anyone have a y new updates on this? We are experiencing the same thing and have been unable to get a response from Shopify so far.

mahaboobkhan29
Visitor
2 0 1

Still facing this issue please share solution