Hello there,
I’ve managed somehow to edit Debut theme code so I can show two different prices for single product (to show prices including finnish 24% VAT and without, because most of the customers would be companies). This has been done with following steps:
-
Settings from Shopify > TAX > Untick “show all prices with tax”
-
product.price.liquid, add some texts >
{{ product.price | times:1.24 | money }}
{{ money_price }}
- product.price-listing.liquid, add some texts >
{{ product.price | times:1.24 | money }}
{{ money_price }}
This works really well, but it doesn’t seem to apply for products with variants. I’ve tried several hours to edit this point “div.price__unit: Displayed when the first variant has a unit price” but with no success. Any ideas what I should change, to get this double price options working for variants as well?
{%- comment -%}
Explanation of description list:
- div.price__regular: Displayed when there are no variants on sale
- div.price__sale: Displayed when a variant is a sale
- div.price__unit: Displayed when the first variant has a unit price
- div.price__availability: Displayed when the product is sold out
{%- endcomment -%}
{{ 'products.product.regular_price' | t }}
{{ product.price | times:1.24 | money }}
sis. alv 24%
{{ product.price | times:1.24 | money }}
{{ money_price }} alv 0%
{{ 'products.product.sale_price' | t }}
{{ money_price }}
{{ product.price | times:1.24 | money }}
{{ 'products.product.regular_price' | t }}
{{ compare_at_price | money }}
{{ product.price | times:1.24 | money }}
{{ 'products.product.on_sale' | t }}
{{ 'products.product.sold_out' | t }}
{{ 'products.product.unit_price_label' | t }}
{%- capture unit_price_separator -%}
/{{ 'general.accessibility.unit_price_separator' | t }}
{%- endcapture -%}
{%- capture unit_price_base_unit -%}
{%- if variant.unit_price_measurement -%}
{%- if variant.unit_price_measurement.reference_value != 1 -%}
{{- variant.unit_price_measurement.reference_value -}}
{%- endif -%}
{{ variant.unit_price_measurement.reference_unit }}
{%- endif -%}
{%- endcapture -%}
{{ variant.unit_price | money }}{{- unit_price_separator -}}{{- unit_price_base_unit -}}
HY
I’ve partially modified my Shopify Debut theme to show two prices for products (with/without 24% Finnish VAT) for B2B customers. However, it’s only halfway working. Here’s what I did: [Briefly summarize steps].
If you’ve solved this for Yacine TV or similar setups, I’d love your advice! Struggling with theme code adjustments—any tips to fully implement this Website?