【问题标题】:Hide price in Bigcartel?在 Bigcartel 中隐藏价格?
【发布时间】:2020-02-17 21:49:29
【问题描述】:

我试图在我的 bigcartel 网站以及“即将推出”的文字中隐藏某些产品的价格。我正在使用 Sidecar 主题。我尝试使用几年前有人在这里发布的代码,但没有任何效果。谁能帮我?提前谢谢你。

【问题讨论】:

    标签: bigcartel


    【解决方案1】:

    unless 来救援!

    使用不显示价格的产品 ID 创建一个 [145758, 9675466, 6872210] 数组,即将推出。

    您可以通过product.id找到产品ID

    {% assign productIds = "145758,9675466,6872210" | split: ',' %}
    

    unless 仅在不满足约束时打印。

    这不打印:

    {% unless input contains '145758' %} Your comming or price HTML code block here {% endunless %}
    

    这将打印“您的块 html 代码”:

    {% unless input contains '444444' %} Your comming or price HTML code block here{% endunless %}
    

    Click here 获取更多帮助。

    【讨论】:

      【解决方案2】:

      以下代码是隐藏这两者的最简单方法:

      div.product-price { display: none; }
      div.status-text { display: none; }
      

      转到设计 > 代码 > 自定义 CSS

      不幸的是,在某些主题上,即将推出/已售罄的盒装背景。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-12-11
        • 2018-07-15
        • 1970-01-01
        • 1970-01-01
        • 2018-09-01
        • 2018-05-26
        相关资源
        最近更新 更多