initial commit

This commit is contained in:
Gerhard Scheikl
2026-08-24 21:41:12 +02:00
commit 5c952a25b1
367 changed files with 134961 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{%- doc -%}
Renders the unit price, including its measurement.
@param {object} price - The unit price (money or string).
@param {object} measurement - The unit_price_measurement object.
@param {boolean} [hide_accessibility_label] - Whether to hide the accessibility label (default: false).
@example
{% render 'unit-price', price: variant.unit_price, measurement: variant.unit_price_measurement %}
@example
{% render 'unit-price', price: line_item.unit_price | money_with_currency, measurement: line_item.unit_price_measurement }
{%- enddoc -%}
<small class="unit-price caption">
{%- unless hide_accessibility_label -%}
<span class="visually-hidden">{{ 'products.product.price.unit_price' | t }}</span>
{%- endunless -%}
<span class="price-item price-item--last">
{{ price | unit_price_with_measurement: measurement }}
</span>
</small>