隐藏Shopify网站 热销产品Best Selling页面
作者:shopify教程
浏览次数:727
发布时间:2018-12-07
如果你的 shopify 有些产品做的很不错,不想让竞争对手抄袭,特别是 Dropshipping 的产品,SHOPIFY教程网跟你们说说,其实使用几行代码就可以轻松隐藏热销产品页面,例如:打开你的 Shopify 网站后台,Theme– Edit Cod(《shopify页面开发教程》)
打开文件 Templates Collection.liquid
出现这一行代码:
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}
{% section ‘collection-template’ %}
换成
{% if collection.sort_by == ‘best-selling’ %}
{% else %}
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}
{% section ‘collection-template’ %}
{% endif %}
here 这个地方可以随意修改你想要的名称或者别的
这是我改过之后的

打开文件 Templates Collection.liquid

出现这一行代码:
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}
{% section ‘collection-template’ %}
换成
{% if collection.sort_by == ‘best-selling’ %}
here
{% else %}
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}
{% section ‘collection-template’ %}
{% endif %}
here 这个地方可以随意修改你想要的名称或者别的
这是我改过之后的

下一篇:shopify怎么注册开店