website logo
โŒ˜K
Welcome! ๐Ÿ‘‹
Tensile API Reference
Shopify
Shopify Merchant Installation Guide
Shopify Refunds Guide
Shopify Promo JS library
BigCommerce
BigCommerce Merchant Installation Guide
BigCommerce Troubleshooting
BigCommerce User Guide
WooCommerce
WooCommerce Merchant Installation Guide
WooCommerce Refunds Guide
SDK for Custom Integrations
Custom eCommerce Stores
Add SDK to React App
Donations for Non-Profits
Docs powered byย archbeeย 
15min

Shopify Promo JS library

Manual Installation

Step 1: Navigate to your theme.liquid file in your code editor

  • Login to your store, then navigate to Themes > Actions > Edit Code
Document image
  • Open your theme.liquid file
Document image

๏ปฟ

Step 2: Install the Tensile Promo JS library

  • Paste the following script above the </head> tag
HTML
|
script goes above the </head> tag
script goes above the </head> tag

๏ปฟ

Step 3: Configure messaging for the library

  • 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
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

Step 4: Activate the library

  • Create a new instance of the TensilePromo class and pass in the object you just created
HTML
|
Document image
  • Click "Save" to save your code changes
  • Navigate to your store to view the changes!
Document image

Step 5: Repeat steps for checkout.liquid file (Shopify Plus merchants only)

  • 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.
Document image
Updated 10 Jun 2022
Did this page help you?
Yes
No
UP NEXT
BigCommerce Merchant Installation Guide
Docs powered byย archbeeย 
TABLE OF CONTENTS
Manual Installation
Step 1: Navigate to your theme.liquid file in your code editor
Step 2: Install the Tensile Promo JS library
Step 3: Configure messaging for the library
Step 4: Activate the library
Step 5: Repeat steps for checkout.liquid file (Shopify Plus merchants only)