How to display judge.me stars in "featured product" section ?


 Hi,


The stars & number of reviews appear correctly on my product pages between title and price,

but they are not displayed on content pages when I insert a "featured product" section.

Is there a way to achieve this ?


I use Shopify + Dawn theme 6.0.2 (OS2.0)

I found the template file featured-product.liquid in which I can insert a few code lines around line 100 but... What kind of shortcode would do the trick ?


Thanks in advance,


Si I found -maybe- a solution, but I am not totally comfortable with it :

in the heme file featured-product.liquid between title & price I added the badge code I copied from the judge.me template file ( judgeme_widgets.liquid )


Code is the following and it seems to work fine in my "featured product" sections :

<div style='{{ jm_style }}' class='jdgm-widget jdgm-preview-badge' data-id='{{ product.id }}'
data-template='{% if concierge_install == true or concierge_install == nil %}{{ template }}{% else %}manual-installation{% endif %}'
data-auto-install='{% if auto_install != nil %}{{ auto_install }}{% else %}false{% endif %}'>
  {{ product.metafields.judgeme.badge }}
</div>

 But my question is : is there a risk it will stop working when JM updates its Shopify app ?...

 

Thanks

hello there


On 2.0 themes, you can add the widgets directly from your Shopify editor, here's a guide on how you can do so easily:


https://support.judge.me/support/solutions/articles/44002237471-install-judge-me-widgets-in-online-store-2-0-themes-shopify-


If you wish to add the widgets via code, you can reach out to us at support@judge.me and we'll install the widgets for you and show you exactly where the code has been added.


Kind regards.


1 person likes this

 Thanks for your answer,


But when I edit a page and add a "featured product" section, the page editor does not let me add a subsection that would dispay the star score of the chosen product.


So far the code lines I added in featured-product.liquid seems to work, so I'll go on with it !

Login or Signup to post a comment