How to Add a Review section by editing code

Enhance your Shoplazza online store by integrating a customer review section. This feature allows for personalized display of customer feedback on your homepage. Follow this guide to implement this feature through simple code editing.

Steps

1. From your Shoplazza Admin > Online Store Themes, click the more options icon and select Edit code.

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

Note

Some of the themes may already contain an apps.liquid section. You can delete the original section to create a new one.

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, head over to your Shoplazza Admin > Online Store Themes, click Customize next to the target theme.

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

6. Click on Review Flow under apps section.

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

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

9. When you finish editing, click Save draft or Publish to complete the process.

Note

Remember to enable the review module in Products > Product review > Settings. Otherwise, the section will not be displayed. For more details about this, see Setting up Shoplazza's native reviews.

Adding a Review section by editing code allows you more flexibility to customize your store, and helps create trust with users. By seeing others' experiences, your customers can make more informed decisions about your product or service, and you will be able to identify areas for improvement.

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

Comments

0 comments

Please sign in to leave a comment.

Live chat
Reset