Solved

Redirecting cart to different URL/Domain

beltbro
New Member
6 0 0

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?

Accepted Solution (1)

iDoThemes
Trailblazer
207 43 91

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.

Developer of Liquify Chrome Extension -- Enhance the Shopify Theme Code Editor
.




Theme Developer -- Drop me a line

View solution in original post

Replies 4 (4)

iDoThemes
Trailblazer
207 43 91

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.

Developer of Liquify Chrome Extension -- Enhance the Shopify Theme Code Editor
.




Theme Developer -- Drop me a line
beltbro
New Member
6 0 0

I'm trying to find a more native solution, such as redirecting the existing checkout button through an onClick event perhaps?

iDoThemes
Trailblazer
207 43 91

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.

Developer of Liquify Chrome Extension -- Enhance the Shopify Theme Code Editor
.




Theme Developer -- Drop me a line
gruntled
Visitor
1 0 0

@iDoThemes can we contact you for some dev work?