Checkout permalink doesn't work?

Solved
Highlighted
New Member
3 0 0

Hi, I'm trying to make a 'buy now' button where the user clicks and is sent to the Checkout page with a product automatically added to the cart. 

 

The following works for me:

https://utility-design.myshopify.com/cart/add/31407392456749

but I want the user to get sent to checkout, not the Cart page. (31407392456749 is my product's variant id) So I tried this:

https://utility-design.myshopify.com/cart/31407392456749

but it gives me a 404 error.

 

I'm following this tutorial for reference https://help.shopify.com/en/themes/customization/cart/use-permalinks-to-preload-cart

 

Thanks,

Ian

0 Likes
Highlighted

Success.

Excursionist
13 2 4

I think the address should look something like: 

https://utility-design.myshopify.com/cart/31407392456749:1

':1' representing the quantity of the item to be added to cart.

I make custom Shopify pages & themes.. rgeekdigital.com | info@rgeekdigital.com
1 Like
Highlighted
New Member
3 0 0

thanks! that worked

0 Likes