How To Change The Position of Afterpay Widget on Shopify Product Page

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.

Afterpay is a “Buy now, Pay later” platform that lets you buy something immediately, and pay it off over some weeks.

After integrating Afterpay with Shopify, the Afterpay widget will be inserted automatically at the top of the product card on Shopify product pages. In some cases, you would prefer to show the widget in the other position. This article will let you know how to adjust the position of the Afterpay widget.

Afterpay will provide you with a Javascript code to insert your Shopify theme.

To adjust the position of the Afterpay widget, you must find this Javascript code. Normally, you will find this code in the theme.liquid file.

Find to the line containing the string:

// var afterpay_product_selector = '#product-price-selector';

and change to:

var afterpay_product_selector = '#hura-afterpay-widget';

Now, you can show the Afterpay widget anywhere you want, you just need to insert the following code in that position.

<div id="hura-afterpay-widget"></div>

That’s it. I hope this article is useful to you.

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 *