Discount Ninja Integration Guide
Here is the guide for Discount Ninja Integration with Boost Product Filter & Search app.In this article
About Discount Ninja
1
App Information
- Discount Ninja create special offers based on smart rules and trigger offers automatically.
- App details: https://apps.shopify.com/discount-url
2
Discount Ninja Integration Benefit
- Customers filter product list and get inherited by the updated price base on the discount policy of the app.
Demo of Discount Ninja Integration
Here is our customer's store with our app and Discount Ninja integration.
Instruction
Attention: The current document only works with the new front-end lib from Boost Commerce. Please read this document first to know if you are using the latest version.
// For boost-pfs-filter.js '<div class="product-item--price" data-limoniapps-discounturl-product-handle="{{itemHandle}}" data-limoniapps-discounturl-product-price="{{itemPriceMin}}" data-limoniapps-discounturl-product-compareatprice="{{itemCompareAtPriceMax}}">' + '<span class="limoniapps-discount-url-productprice">' + '{{itemPrice}}' + '</span>' + '</div>' + // For boost-pfs-filter-html.liquid <div class="product-item--price" data-limoniapps-discounturl-product-handle="[[itemHandle]]" data-limoniapps-discounturl-product-price="[[itemPriceMin]]" data-limoniapps-discounturl-product-compareatprice="[[itemCompareAtPriceMax]]"> <span class="limoniapps-discount-url-productprice"> [[itemPrice]] </span> </div>

If productGridItemHtml variable does not exist, please check the file boost-pfs-filter-html.liquid
Continue to copy the below script to build attributes of the app:
var comparePrice = data.compare_at_price_max || 0; itemHtml = itemHtml.replace(/{{itemCompareAtPriceMax}}/g, comparePrice); itemHtml = itemHtml.replace(/{{itemHandle}}/g, data.handle); itemHtml = itemHtml.replace(/{{itemPriceMin}}/g, data.price_min);

if (typeof discountNinja != 'undefined' ) { discountNinja.DynamicPricing.UpdatePrice(); }