Liquid, JavaScript, themes, sales channels
Is it possible to redirect our customers Shopify cart to a different checkout other than Shopify? So when they click Checkout it goes to a different link and passes the items in their cart to the new url?
Solved! Go to the solution
This is an accepted solution.
Yes you could create a custom checkout button that does this, though it would still be possible for someone to go to yourstore.com/checkout directly so you'd need a way to prevent them from checking out that way too.
This is an accepted solution.
Yes you could create a custom checkout button that does this, though it would still be possible for someone to go to yourstore.com/checkout directly so you'd need a way to prevent them from checking out that way too.
I'm trying to find a more native solution, such as redirecting the existing checkout button through an onClick event perhaps?
Shopify has banned checkout hijacks from apps so there isn't really a native offering of this functionality. A checkout button override should work. You could get the cart data from the cart API endpoint, format the data as needed for your new checkout then POST the cart data to that which should automatically redirect them if successful.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024