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

Hura Product Showcase Builder

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.

Hura Theme Blocks

You may also like...

Leave a Reply

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