变种& shopify中的价格负荷

时间:2017-05-16 20:13:03

标签: ajax shopify shopify-activemerchant

默认版本的产品价格正在发挥作用。当我更改变体" Inc VAT"没有自动改变。 当我要更改产品的变体时,我想自动更改产品价格。看到商店 - 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 个答案:

没有答案