外贸堂

标题: shopify 增加tag 教程 [打印本页]

作者: admin    时间: 2022-10-13 15:01
标题: shopify 增加tag 教程
shopify有些主题产品页面自带显示tag链接,有些不带。 如果想自己添加,方法如下
  1.       <div class="product-tags">
  2.       <p><strong>Product Attributes:</strong>
  3.       {% for tag in product.tags %}
  4.       <a href="/collections/all/{{ tag | handleize }}">{{ tag }}{% unless forloop.last %},{% endunless %}</a>
  5.       {% endfor %}
  6.       </p>
  7.       </div>
复制代码


路径: Sections / product-template.liquid    注意是自己使用的模版的产品页面

https://community.shopify.com/c/ ... link-to/td-p/470672





欢迎光临 外贸堂 (https://www.waimaotang.com/) Powered by Discuz! X3.4