Add Reviews Section by Editing Code

Your Shoplazza admin provides you with an option to add a review section by editing code in your theme. You can add and manage the display of customer reviews on your homepage as per your need.

Steps

1. From your Shoplazza admin > Store > Themes > Action > click ⋯ (more options icon) and click Edit code as shown below.

2. In the Sections > click Add a new section and name the file apps.liquid.

3. Copy the following code, paste it into apps.liquid file that was created, and click Save.

<div class="{% if section.settings.page_width %}tw-container{% endif %}">
  {%- for block in section.blocks -%}
    {% render block %}
  {%- endfor -%}
</div>
{% schema %}
{
  "name": "apps",
  "max_blocks": 16,
  "settings": [
    {
      "type": "checkbox",
      "id": "page_width",
      "label": {
        "en-US": "Make section margins the same as theme",
        "zh-CN": "使分区页边距与模板相同"
      },
      "default": false
    }
  ],
  "blocks": [
    {
      "type": "@app"
    }
  ],
  "presets": [
    {
      "name": "apps",
      "cname": {
        "en-US": "Apps",
        "zh-CN": "应用"
      },
      "category": {
        "en-US": "Apps",
        "zh-CN": "应用"
      },
      "ccategory": {
        "en-US": "Apps",
        "zh-CN": "应用"
      },
      "display": true,
      "blocks": []
    }
  ]
}
{% endschema %}

4. After saving the code in the apps.liquid file, head over to the theme editor by going to your Shoplazza Admin > Themes > and click Customize.

5. Here you will add a new section by clicking on Add section.

6. Click on Review Flow under apps section.

Once it's added, click on Review Flow to open the section.

7. Here you can preview the section and edit the related settings.

8. When you're done editing, Click Publish and go to the store homepage to view the effect.

Congratulations! You should now be able to see the customers review section on your store website home page.

Tips:

Remember to Adding the reviews section by editing code in the Product review settings otherwise, the section will not display.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.