No discounted prices or building blocks
Discount Ninja is not active on Zipify pages. Dynamic Pricing and other building blocks can therefore not be leveraged.
However, you can use a Zipify page as a landing page for your Discount Ninja promotion. If your promotion is triggered by a shareable link, you'll need to pass the token of the trigger in the URL.
Shareable link
You'll need to build your shareable link for your Zipify page.
Example: if the url of your Zipify page is https://www.myshop.com/pages/my-zipify-page and the token of your URL is ABCDE then you'll need to send visitors to https://www.myshop.com/pages/my-zipify-page?token=ABCDE
Adding the script to Global scripts
To ensure the token is understood by the landing page and properly used when visitors click through to other pages on which Discount Ninja is active (product pages, collection pages, home page, cart...)
Open the Zipify Pages app. Add the following script in the Settings > Global scripts header scripts:
<script type="text/javascript">
try { let a = window.location.href.replace(window.location.hash, ""); let b = [], hash; let c = a.slice(a.indexOf('?') + 1).split('&'); for (let i = 0; i < c.length; i++) {hash = c[i].split('='); b.push(hash[0]); b[hash[0]] = hash[1];} let d = b["token"]; if (d) sessionStorage.setItem('limoniapps-discountninja-savedtoken', d); }
catch (e) { let a = 0; }
</script>
Ensure the Zipify page uses the script
Next, find the Zipify page you want to use as the landing page and ensure it uses the global script you have created.
To check, edit the page and find the </> icon on the top right:
Click the icon and ensure the script you have added is enabled:
Test
Note that changes in your Zipify scripts can take up to 5 minutes to take effect.
Visit the landing page using the shareable link you built. When you click through to, for example, a product page your Discount Ninja promotion will trigger.