How do I access the content of the section depending on the product?

vgreyes
Shopify Partner
33 1 1

Hi,

The client that I'm working with right now wants to add a `featured testimonial` at the top of the product page. This is currently my schema

 

{% schema %}
{
    "name": "Featured Testimonial",
    "settings": [
        {
           "type": "textarea",
           "id": "top_review_section",
           "label": "Featured Testimonial"
       }
    ]
}
{% endschema %}

 

 

This is on the `.liquid` file of the feature I want to implement

 

{% assign top_review_section = product[product.id] %}

<h3 class="product-featured-testimonial" id="top_review_section">
      {{ section.settings.top_review_section }}
</h3>

 

 

When I add content to the section, it shows the same content on all product pages. Can you point me to the right docs where I can reference the answer to my question?

Website: https://studio.icvn.tech
Twitter: @_icvntechstudio
Facebook: https://facebook.com/icvntechstudio
0 Likes