Discount Ninja Integration Guide
Here is the guide for Discount Ninja Integration with Boost Product Filter & Search app.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 function
- Customers filter product list and get inherited by the updated price base on the discount policy of the app.
How to integrate Discount Ninja with Boost AI Search & Discovery
This feature only works with Boost Product Filter & Search V2 .
From your Shopify admin, go to Online Store > Themes.
Find the theme you'd like to integrate the app and click Actions (⋯) > Edit code
productGridItemHtml
// 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>

<strong>productGridItemHtml</strong>
does not exist in
<strong>boost-pfs-filter.js</strong>
, please find it in the file
<strong>boost-pfs-filter-html.liquid</strong>
and paste this code snippet instead
:
ProductGridItem.prototype.compileTemplate
// Add main attribute
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);
Filter.prototype.afterRender
if (typeof discountNinja != 'undefined' ) { discountNinja.DynamicPricing.UpdatePrice(); }