How can I add Afterpay Site Messaging to my product and cart pages?
Follow the instructions below according to which theme platform your store uses.
If you are not sure what platform is used by your store, see Which Theme Platform do I have?.
Go to Storefront › Script Manager
Click Create a Script.
Set up the following:
Copy and paste the below script into Script Contents:
You can modify the script so that the banner will only display a price breakdown if the product meets your order minimum and maximum thresholds.
To do so, you will need to edit the following values within the script and set the minimum and maximum values to mirror your Afterpay account settings:
script.dataset.min = "1.00";
script.dataset.max = "800.00";
Banner not showing up?
Sometimes the script may not work because the HTML elements are named differently depending on your theme. Work with your developer to help update the script depending on your theme.
Access your themes template files by going to Storefront › Template Files.
Find the file Panels/ProductDetails.html.
Copy the script below and paste it into the Panels/ProductDetails.html file:
You should now see Afterpay’s messaging underneath the price of products and the cart total.