15min
Shopify Promo JS library
- Login to your store, then navigate to Themes > Actions > Edit Code

- Open your theme.liquid file

๏ปฟ
- Paste the following script above the </head> tag
HTML
|

script goes above the </head> tag
๏ปฟ
- Create another script tag below the script tag that loads the Tensile Promo JS library
- Within the new script tag, create an object with the following fields:
HTML
|

basic html is supported to configure the text
- note: if a field is not provided, default text will be used that's equivalent to the text seen above
- Create a new instance of the TensilePromo class and pass in the object you just created
HTML
|

- Click "Save" to save your code changes
- Navigate to your store to view the changes!

- To include Tensile's promo messaging in your store's checkout flow, repeat steps 1-4 for your checkout.liquid file. Note, modifying this file is only available to Shopify Plus merchants.


Updated 10 Jun 2022
Did this page help you?
Yes
No