0

默认变体的产品价格有效。当我更改变体时,“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>
4

0 回答 0