This is the code of “price-ui-templates.liquid” - what do I have to change? I don’t know nothing about coding sorry.
{%- capture output -%}
{%- comment -%}
@Anonymous template {String}
A string representing the template to render
@Anonymous template (price)
The template for all prices in the Price UI
Innermost element must contain the data attribute ‘price’
@Anonymous value {String}
A money value, empty if used as a template
@Anonymous template (price-percent)
The template for all prices displayed as a percentage of savings
Innermost element must contain the data attribute ‘price-percent’
@Anonymous value {String}
The percentage value saved, empty if used as a template
@Anonymous template (price-min)
The template for price minimums, used in price ranges
Innermost element must contain the data attribute ‘price-min’
@Anonymous value {String}
A money value, empty if used as a template
@Anonymous template (price-max)
The template for price maximums, used in price ranges
Innermost element must contain the data attribute ‘price-max’
@Anonymous value {String}
A money value, empty if used as a template
@Anonymous template (unit-quantity)
The template for unit quantities, used in unit pricing
Innermost element must contain the data attribute ‘unit-quantity’
@Anonymous value {String}
A string, empty if used as a template
@Anonymous template (unit-price)
The template for unit prices, used in unit pricing
Innermost element must contain the data attribute ‘unit-price’
@Anonymous value {String}
A money value, empty if used as a template
@Anonymous template (unit-measurement)
The template for unit measurements, used in unit pricing
Innermost element must contain the data attribute ‘unit-measurement’
@Anonymous value {String}
A string, empty if used as a template
@Anonymous template (price-ui)
The template for the Price UI.
Must contain the data attributes ‘compare-at-price’, ‘price’, and ‘unit-pricing’
@Anonymous compare_at_price {Object}
Can be a price object or price-range object,
empty if used as a template or false if not included
@Anonymous price {Object}
Can be a price object or price-range object,
empty if used as a template
@Anonymous unit_pricing {Object}
Must be a unit-pricing object,
empty if used as a template or false if not included
@Anonymous template (price-ui-badge)
The template for the Price UI Badge.
Must contain the data attribute ‘badge’
@Anonymous badge {String}
A string containing product information,
empty if used as a template
{%- endcomment -%}
{%- capture _price -%}{%- if value != blank -%}{{- value | money -}}{%- endif -%}{%- endcapture -%}
{%- if template == ‘price’ -%}
{{- _price -}}
{%- elsif template == ‘price-percent’ -%}
{%- if value != blank -%}{{- value -}}{%- endif -%}
{%- elsif template == ‘price-min’ -%}
{{ _price }}
{%- elsif template == ‘price-max’ -%}
{{ _price }}
{%- elsif template == ‘unit-quantity’ -%}
{%- if value != blank -%}{{- value -}}{%- endif -%}
{%- elsif template == ‘unit-price’ -%}
{{ _price }}
{%- elsif template == ‘unit-measurement’ -%}
{%- if value != blank -%}{{- value -}}{%- endif -%}
{%- elsif template == ‘price-ui’ -%}
{%- if price != blank -%}{{- price -}}{%- endif -%}
{%- if compare_at_price != false -%}{%- if compare_at_price != blank -%}{{- compare_at_price -}}{%- endif -%}{%- endif -%}
{%- if unit_pricing != false -%}{%- if unit_pricing != blank -%}{{- unit_pricing -}}{%- endif -%}{%- endif -%}
{%- elsif template == ‘price-ui-badge’ -%}
{%- if badge != blank -%}{{- badge -}}{%- endif -%}
{%- endif -%}
{%- endcapture -%}
{{- output -}}