一直在开发一个网站,我希望在产品页面上显示两个价格。
我们正在使用企业主题,我通过修改 main-product.liquid 文件设法让它显示在产品页面上。
{%- when 'price' -%}
<div class="product-info__block product-info__block--sm product-price" {{ block.shopify_attributes }}>
<div class="product-info__price">
{% render 'price', product: product, use_variant: true %}
<p> {{ product.price | divided_by: 1.2 | money }} ex. VAT </p>
</div>
但是,我现在遇到的问题是,当点击产品的不同变体时,价格不会更新,默认价格会更新,只是不是我添加的增值税价格。
有什么指点吗?谢谢。