SHARE
TWEET

Untitled

a guest Sep 17th, 2019 90 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.             //Rule 1: (Hide All prices from any search result page)
  6.             $jquery_isp(this).find('.isp_product_price_wrapper span').text("");
  7.           //Rule 2: (Add "Request Price" button to vortex brand)
  8.           var title = $jquery_isp(this).find('.isp_product_title').text();
  9.             if (title.includes("vortex") || title.includes("Vortex")) {
  10.               $jquery_isp(this).find('.isp_product_title').after("&nbsp;")
  11.             $jquery_isp(this).find('.isp_product_price_wrapper').replaceWith
  12.             ('<button id="requestPriceBtn" type="button" class="btn" style=" border-radius: 5%; margin: auto; display:block">Request Price</button>');
  13.             $jquery_isp(this).find('.btn').click(function(){
  14.               //***reqest sent to site***//
  15.               $(this).replaceWith('<div id= "requestSent " style= "color: green; ">Price request sent! A customer service agent will email you shortly.</div>');
  16.             });
  17.           }
  18.         });
  19.     }
  20. }
  21. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top