commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Checkout redirects from custom domain to shopify domain

Open danieldanielecki opened this issue 1 year ago • 5 comments

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.

Screenshot 2024-05-29 at 19 38 29 Screenshot 2024-05-29 at 19 38 46 Screenshot 2024-05-29 at 19 39 03 Screenshot 2024-05-29 at 19 39 20

danieldanielecki avatar May 29 '24 17:05 danieldanielecki

In Shopify, make your shop.ditectrev.com as primary domain and redirect the old address to it.

karlthomaas avatar Jun 05 '24 20:06 karlthomaas

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

Screenshot 2025-01-10 at 11 01 52 Screenshot 2025-01-10 at 11 02 04 Screenshot 2025-01-10 at 11 02 17

danieldanielecki avatar Jan 10 '25 10:01 danieldanielecki

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

danieldanielecki avatar Jan 10 '25 10:01 danieldanielecki

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.

Image

Domain setup in Shopify

Image

Domain setup in Vercel and in the domain registry

Image Image

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.

danieldanielecki avatar May 24 '25 12:05 danieldanielecki

and lastly, hostname of my storefront

Image

danieldanielecki avatar May 24 '25 12:05 danieldanielecki