Cash App Afterpay Site Messaging
How can I add Cash App 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?.
Stencil Theme
-
Go to Storefront › Script Manager
-
Click Create a Script.
-
Set up the following:
- Name of Script: Cash App Afterpay Messaging
- Description: Place Cash App Afterpay Site Messaging on product and cart pages
- Location on page: Footer
- Select pages where script will be added: Store pages
- Script category: Essential
- Script type: Script
- Load method: Default
-
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 Cash App 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.
Blueprint 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 Cash App Afterpay’s messaging underneath the price of products and the cart total.