Support » Plugin: Product Reviews for WooCommerce » with custom product template

  • Resolved denex


    I have a few reviews for different products but I don’t know how to automatically insert the stars for the correct product. We are using a custom template so we can’t hardcode the product ID in [jgm-review-widget id= /insert product id/]
    Also, can I still use the Woocommerce/UX builder tag: [ux_product_rating].

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author judgeme


    Hi @denex

    We think you already solved it since we can see both widgets on that page.

    The codes you probably used are for a product ID 1616:
    [jgm-review-widget id=1616]

    You can be using any other existing product ID.

    Thread Starter denex


    No. This pulled in the reviews for all products and not just that product. The layout is a “custom” layout of the standard product template where you can rearrange the elements. I can add the tag:
    [jgm-review-widget id= /insert product id/]

    into the template but not sure what to put for the product ID.

    Plugin Author judgeme



    What you can see at are our 2 product widgets, aligned with the product 1616 (Compliant 90%+ Delta-8 Distillate) which actually has 5 reviews, and it’s also inside a group of products (Delta-8) so all the products inside the group will be sharing the reviews.

    If you want to check your actual product reviews, you just need to get into the Settings (Get Started button in the tab of your admin) and then click on Reviews on the top bar to access the Reviews Dashboard.

    If you were to use the product widget codes with a different product, you’d just need to change the Product ID in the shortcodes:
    [jgm-preview-badge id=XXXX]
    [jgm-review-widget id=XXXX]

    where XXXX must be replaced with the right Product ID.

    To find the right Product ID of your products,
    • Go to your WooCommcerce Products admin (…/wp-admin/edit.php?post_type=product)
    • Hover over any product and find the ID: …, e.g. ID: 122

    • This reply was modified 1 year ago by judgeme.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ with custom product template’ is closed to new replies.