Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let _isp_interval = null;
  2.  
  3. var __isp_options = {
  4.     isp_serp_callback: function() {
  5.         $jquery_isp('.isp_product_image_wrapper a.isp_product_image_href').each(function() {
  6.             let product_handle = $jquery_isp(this).attr("href").split("/products/")[1];
  7.             $jquery_isp(this).attr("data-product",product_handle);
  8.             $jquery_isp(this).addClass("zensl-collection-manual");
  9.         });
  10.         window.addEventListener("load",function () {
  11.              waitForZENITHIFY();
  12.         });
  13.     }
  14. };
  15.  
  16. function waitForZENITHIFY() {
  17.     if(_isp_interval === null){
  18.         _isp_interval = setInterval(function () {
  19.             if (typeof ZENITHIFY !== 'undefined') {
  20.                 ZENITHIFY.smartLabels.jQuery = ZENITHIFY.jQuery;
  21.                 ZENITHIFY.smartLabels.displayLabelOnCollection();
  22.                 clearInterval(_isp_interval);
  23.             }
  24.         },1000);
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement