How to add Buy It Now button to skip the cart and go straight to checkout in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

You can have a simple “BUY IT 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!

We can easily implement this functionality by following the easy steps:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. In the Sections directory, open one of the following files:
    • Click product-template.liquid to update the product page template. In some themes, the product template has a different filename. In some cases, the product form is included in a file in the Snippets directory, and has a name like product-form.liquid.
    • Click featured-product.liquid to update the home page featured product section.
  4. Find the product form by searching for <form action="/cart/add". Take note of any attributes that the form has, such as a class or an id. You can include these attributes in the updated product form that you will create in the next step. If you don’t include the attributes, then the styling or behavior of the form might be affected.
  5. Delete the entire opening <form> tag, and replace it with the following Liquid:

    To include the attributes from the old form, add them to your updated form by using the following syntax:

  6. Find the closing </form> tag by searching for </form>. And replace the closing </form> tag with the following Liquid:

  7. Find the Add to cart button by searching for an input or a button tag that has the attribute type="submit".
  8. On a new line below the Add to cart button, add the following Liquid:

  9. Click Save. And you’re done!
    Your modified product form should look something like this example code:

When you click the button it will now redirect straight to the checkout page with the product added in the list.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *