User wants to remove the product review ratings when using the product search on their web-store.

  1. Logininto Site Management Tools for your web-store
  2. Switch to “Edit” mode
  3. Add “CMS HTML” content to “All Pages” area type
  4. Add the following JavaScript code to the “HTML Code” field:

    <script>
    $(“.itemssearcher-input”).on(“keydown keyup”, function(){‌
      hideSearchRatings(1);
    });

    function hideSearchRatings(count){‌
      if(count != 0){‌
        setTimeout(function(){‌
            $(“.global-views-star-rating”).hide(); count+=1;
            count !== 10 ? hideSearchRatings(count) : count = 0;
        }, 200);
      }
    }
    </script>
  5. Save the HTML content and Publish changes
  6. Click on Publish

Leave a comment

Your email address will not be published. Required fields are marked *