commerce
commerce copied to clipboard
Checkout redirects from custom domain to shopify domain
While being on https://shop.ditectrev.com I'm clicking Proceed to Checkout and it redirects me to https://122d98.myshopify.com/checkouts/cn/ABC..., instead of leveraging the custom domain such as https://shop.ditectrev.com/checkouts/cn/ABC.... I'm sending my domain redirects. The semo behaviour we can see for https://demo.vercel.store
I think so it's intentional, and should be fixed, but if someone has an idea I'll share my domain settings.
In Shopify, make your shop.ditectrev.com as primary domain and redirect the old address to it.
In Shopify, make your shop.ditectrev.com as primary domain and redirect the old address to it.
then the user is redirected to a 404 page
the URLs it generated (in case of someone from Vercel takes a look) https://shop.ditectrev.com/cart/c/Z2NwLWV1cm9wZS13ZXN0NDowMUpDREVWM0gzMVlGNUNKREdTSkVGMjVSRA?key=5e178106ea2b204283e1e0b72116f267
https://shop.ditectrev.com/cart/c/Z2NwLWV1cm9wZS13ZXN0NDowMUpIN1RKR0VGWktSVjgxTlI4REpXMDY2TQ?key=6843eafe01641f995b1f636a57ffdd93
When I have the domain connected to Vercel correctly and on Shopify having its domain as primary, then everything is working fine, checkout is working fine, just the checkout redirects to my Shopify domain instead of that one connected to Vercel.
I tried to solve this with Shopify support, but they're pointing to Vercel. We tried to set the DNS to Shopify ones, but then on Vercel there's of course an error, and when the user enters my shop displays Redirecting...Click here if you are not automatically redirected.... Shopify says the Theme is not set correctly. However, only in that setup, I'm able to access the checkout on the correct URL, despite the main page being practically disabled, via configurations hitting the View button.
Domain setup in Shopify
Domain setup in Vercel and in the domain registry
I'm leaving it as is, as mostly the user doesn't care/pay attention on the checkout, but really something to improve. It seems to me https://github.com/vercel/commerce/issues/1308 is related.
and lastly, hostname of my storefront