Skip to main content

Carousel: add a simple filter by product

  • March 25, 2025
  • 1 reply
  • 16 views

Forum|alt.badge.img

Filter the carousel to display reviews for the page’s product only.  Carousel needs to show reviews only for the product on that page.

Featured products Filter mixes reviews from multiple products in the Carousel.  Dumb!!

Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Forum|alt.badge.img+4
  • Problem Solver III
  • 25 replies
  • March 26, 2025

To filter the carousel and display reviews for the product on the page only, you’ll need to set up the carousel to pull reviews specifically tied to the product ID of the current page. Here’s a simple way to approach it:

 

1. Identify the Product ID: Ensure the product’s unique ID is captured on the page, typically in the HTML or through the CMS (like Shopify or WooCommerce).

   

2. Link Reviews to the Product ID*: Ensure that the reviews are linked to specific product IDs. Each review should be tied to the corresponding product.

 

3. Filter Review: Use JavaScript or a back-end query to filter reviews in the carousel by matching the product ID of the page with the product IDs in your reviews database.

 

4. Update the Carousel: Modify the carousel code to only display reviews related to that product’s ID. This ensures that only reviews for the current product on the page are shown, not reviews from other products.

 

This way, the carousel won’t mix reviews from different products, ensuring that only relevant reviews are shown. Let me know if you need more detailed steps for implementation!


Reply