we have a externally hosted webshop and want to use the checkout from shopify. My setup so far:
externally hosted page on cloudflare: custom-domain.com
creation of cart and adding products to it via the Shopify Buy SDK (Storefront APIs)
Shopify Basic subscription with a subdomain of our domain (shop.custom-domain.com) connected
Added redirects to our custom-domain.com for most of the shop pages to the top (<script>window.location.href= 'https://custom-domain.com/'</script>) especially the cart page, as the cart should live on our page. users should only be at shop.custom-domain. com for the checkout and the user account.
What I want to archive:
I want to be able to get the "Return to cart" button in order to get back to my shop at custom-domain.com
when using the Shopify link to checkout directly there is no option to add a button to get back to our shop or the cart. In the Breadcrumb navigation there is no step cart.
When I move through the Shopify shop at shop.custom-domain.com and jump from the cart to the checkout, the button is there. Also in the Breadcrumb navigation there is the step "cart".
Create a special page to redirect internally to the checkout page with the help
I saw this at the checkout process of Recess . They use a page /pages/redirects/?checkout-id=jasfoiioasfd.
First step would be to extract the checkout-id and then setup the redirect
How would I set this up in liquid? I can not seam to work out how I can create and submit the form automatically to get to the checkout page "internally"