Skip to content

Storefront API Checkout URL not working #197

Answered by johncraigcole
endigo9740 asked this question in Help
Discussion options

You must be logged in to vote

@endigo9740 your second example might be because the cart is empty?

Checkout can't be started without any line items, so it redirects to the online store cart page. In a custom storefront build on Shopify, typically a developer would add a JS client side redirect to theme.liquid which redirects traffic back to the custom storefront. The redirect piece is documented here. While the docs are for Hydrogen and Oxygen, it's applicable to any custom storefront with a Shopify hosted checkout.

Replies: 4 comments 23 replies

Comment options

You must be logged in to vote
12 replies
@johncraigcole
Comment options

@johncraigcole
Comment options

@endigo9740
Comment options

@johncraigcole
Comment options

Answer selected by endigo9740
@endigo9740
Comment options

@johncraigcole
Comment options

@endigo9740
Comment options

@miksony
Comment options

Comment options

You must be logged in to vote
1 reply
@johncraigcole
Comment options

Comment options

You must be logged in to vote
4 replies
@johncraigcole
Comment options

@fredericbrass
Comment options

@fredericbrass
Comment options

@johncraigcole
Comment options

Comment options

You must be logged in to vote
6 replies
@PhilipKazmeier
Comment options

@johncraigcole
Comment options

@johncraigcole
Comment options

@PhilipKazmeier
Comment options

@johncraigcole
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants