weixin_33681778 2017-05-16 20:13 采纳率: 0%
浏览 79

shopify中的变体和价格负载

Product price for default variant is working.When i change variant "Inc VAT" is not changing automatically. I want to change product price automatically, when i will change variant of a product. See the store- https://woodies-timber.myshopify.com/products/bendi-ply-long-grain

<div class="price dvt-vat">
                  {%- include 'limited-offer' -%}
                  <div id="price">
                    {%- if product.available -%}
                    <span class="price-new money">{{current_variant.price | money}}</span>
                    {%- if current_variant.compare_at_price > current_variant.price -%}
                    <span class="price-old money">{{current_variant.compare_at_price | money}}</span>
                    {%- endif -%}
                    {%- else -%}
                    <span class="price-old">{{'products.product.sold_out' | t}}</span>
                    {%- endif -%}
                  </div>
                  <span class="exl-vat">Exl VAT</span>

                    {% assign dvt_price = current_variant.price  %}
                    {% assign dvt_price_prat = current_variant.price | times :20 | divided_by :100 | plus: current_variant.price | money %}
                    <br>
                    <span class="price-new money dvt_price_totlal">{{ dvt_price_prat }}</span>
                    <span class="exl-vat">Inc VAT</span>


                </div>
  • 写回答

0条回答 默认 最新

      报告相同问题?

      悬赏问题

      • ¥20 C语言字符串不区分大小写字典排序相关问题
      • ¥15 关于#python#的问题:我希望通过逆向技术爬取1688搜索页下滑加载的数据
      • ¥15 学习C++过程中遇到的问题
      • ¥15 关于Linux的终端里,模拟实现一个带口令保护的屏保程序遇到的输入输出的问题!(语言-c语言)
      • ¥15 学习C++过程中遇到的问题
      • ¥15 请问,这个嵌入式Linux系统怎么分析,crc检验区域在哪
      • ¥15 二分类改为多分类问题
      • ¥15 Unity微信小游戏上调用ReadPixels()方法报错
      • ¥15 如何通过求后验分布求得样本中属于两种物种其中一种的概率?
      • ¥15 q从常量变成sin函数,怎么改写python代码?