使用 Product Reviews 應用程式

您可以將評論表單新增至商品頁面,並檢視商品及商品系列頁面的評分徽章。 此教學課程的步驟會因您的佈景主題架構版本而有所不同。 請根據您的佈景主題架構版本,按照指示將評論元素新增至您的網路商店。

Online Store 2.0 佈景主題

您可以在 Online Store 2.0 佈景主題中新增評論、納入評論表單並顯示星級評等。

在「Online Store 2.0」佈景主題中新增評論和評論表單

您可以將評論和評論表單應用程式區塊新增為產品範本中的區段,或在產品範本的主要產品區段新增所需區塊。這些選項適用於 Shopify Theme Store 的所有「Online Store 2.0」佈景主題。視您的佈景主題而定,您可以將其新增至其他範本或區段。

將評論和評論表單新增為區段

將評論和評論表單新增為區塊

在「Online Store 2.0」佈景主題中新增星級評等

您可以在產品範本的主要產品區段新增「星級評等」區塊。此選項適用於 Shopify Theme Store 的所有「Online Store 2.0」佈景主題。視您的佈景主題而定,您可以將其新增至其他區段和範本。

步驟:

舊版區段式佈景主題

您可以在舊版區段式佈景主題的不同頁面上新增評論、納入評論表單並顯示評論評分徽章。

在區段式佈景主題中為商品頁面新增評論及評論表單

在區段式佈景主題中為商品系列頁面新增評論評分徽章

  1. 在 Shopify 管理介面 ,前往「線上商店」 > 「佈景主題」
  2. 找到要編輯的佈景主題,然後依序點擊「」按鈕和「編輯程式碼」。
  3. 在「程式碼片段」目錄中,開啟「product-grid-item.liquid」檔案。在某些佈景主題中,此檔案的名稱不同。若您找不到 product-grid-item.liquid,請尋找下列內容:

    • product-card-grid.liquid
    • product-card.liquid
    • product-card-item.liquid
    • product-block.liquid
    • product-item.liquid
  4. 在程式碼中找出您想要顯示評論評分徽章的區域,通常位於商品名稱下方的某個位置。若要在檔案中找出商品名稱,請搜尋 {{ product.title }} Liquid 標籤。

  5. 在包含 {{ product.title }} Liquid 標籤的程式碼下方的新行中,貼上以下程式碼片段:

<span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>
Your code placement might look something like this:
<div class="grid-view-item{% unless product.available %} product-price--sold-out grid-view-item--sold-out{% endunless %}">
  <a class="grid-view-item__link" href="{{ product.url | within: collection }}">
    <img class="grid-view-item__image" src="{{ product.featured_image.src | img_url: grid_image_width, scale: grid_image_scale }}" alt="{{ product.featured_image.alt }}">
    <div class="h4 grid-view-item__title">{{ product.title }}</div>
      {% if section.settings.show_vendor %}
    <div class="grid-view-item__vendor">{{ product.vendor }}</div>
      {% endif %}
    <div class="grid-view-item__meta">
      {% include 'product-price' %}
    </div>
    <span class="shopify-product-reviews-badge" data-id="{{ product.id }}">
    </span>
  </a>
</div>
You can experiment with putting the code in different places in the file to see where you like it best.
  1. 點擊「儲存」。

在區段式佈景主題中為商品頁面新增評論評分徽章

在區段式佈景主題中為精選商品新增評論評分徽章

舊版非區段式佈景主題

您可以在舊版非區段式佈景主題的不同頁面上新增評論、納入評論表單並顯示評論評分徽章。

在非區段式佈景主題中為商品頁面新增評論及評論表單

在非區段式佈景主題中為商品系列頁面新增評論評分徽章

在非區段式佈景主題中為商品頁面新增評論評分徽章

準備好開始透過 Shopify 銷售商品了嗎?

免費試用