Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. var __isp_options = {
  3.     isp_serp_callback: function() {
  4.         $jquery_isp('.isp_grid_product').each(function(index) {  
  5.             var price = ISP_PRODUCTS[parseInt($(this).attr("product_id"))].p;
  6.             var priceCompare = ISP_PRODUCTS[parseInt($(this).attr("product_id"))].p_c;
  7.             if (priceCompare != "") {
  8.                 if (price < priceCompare) {
  9.                     $jquery_isp(this).find('.isp_product_price').attr('data-currency-usd', '');
  10.                     $jquery_isp(this).find('.isp_product_price').text('Add to Cart for Price');
  11.                 }
  12.             }
  13.         });
  14.     }
  15. }
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement