Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
402 views
in Technique[技术] by (71.8m points)

How can I skip the cart and go straight to checkout in the Shopify store?

I need to add "Buy now" button on product collection page and with the help of this button product is directly added in to the cart.

Can any one help me with this??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can have a simple “BUY NOW” button for a product in Shopify that takes the customer directly to the checkout page. It will most likely increase your conversion rate because it removes a step (the cart page) from the purchasing process. Your customers will leap to the checkout page, ready to pay!

In product-template.liquid find the following code:

<span id="AddToCartText-{{ section.id }}"> 

Make a backup of your file and right underneath it enter this code:

<input type="hidden" name="return_to" value="/checkout/" /> 

Customers will still be able to get back to cart from the breadcrumbs on the Checkout page and icon on your website, but it's a start.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...