diff --git a/assets/views/account/order_detail.html b/assets/views/account/order_detail.html
index 7926ca5..a31dd13 100644
--- a/assets/views/account/order_detail.html
+++ b/assets/views/account/order_detail.html
@@ -30,18 +30,18 @@
{% for item in items %}
{{ item.product_name }}{% if item.variant_label %} · {{ item.variant_label }}{% endif %} × {{ item.quantity }}
- {{ item.line_total }} {{ order.currency }}
+ {{ item.line_total }} €
{% endfor %}
-
{{ t(key="checkout-subtotal", lang=lang | default(value='sk')) }} {{ order.subtotal }} {{ order.currency }}
-
{{ order.carrier_name }} {{ order.shipping }} {{ order.currency }}
+
{{ t(key="checkout-subtotal", lang=lang | default(value='sk')) }} {{ order.subtotal }} €
+
{{ order.carrier_name }} {{ order.shipping }} €
{% if order.pickup_point_name %}
{{ order.pickup_point_name }}
{% endif %}
{{ t(key="order-total", lang=lang | default(value='sk')) }}
- {{ order.total }} {{ order.currency }}
+ {{ order.total }} €
@@ -68,7 +68,7 @@
{{ t(key="bank-account-name", lang=lang | default(value='sk')) }} {{ order.bank_account_name }}
IBAN {{ order.bank_iban }}
{{ t(key="bank-variable-symbol", lang=lang | default(value='sk')) }} {{ order.variable_symbol }}
- {{ t(key="bank-amount", lang=lang | default(value='sk')) }} {{ order.total }} {{ order.currency }}
+ {{ t(key="bank-amount", lang=lang | default(value='sk')) }} {{ order.total }} €
{% endif %}
diff --git a/assets/views/account/orders.html b/assets/views/account/orders.html
index 5f9c437..77ea532 100644
--- a/assets/views/account/orders.html
+++ b/assets/views/account/orders.html
@@ -22,7 +22,7 @@
{{ self::status_badge(status=order.status) }}
- {{ order.total }} {{ order.currency }}
+ {{ order.total }} €
{% endmacro order_row %}
diff --git a/assets/views/admin/catalog/discount_form.html b/assets/views/admin/catalog/discount_form.html
index 6321118..d730bef 100644
--- a/assets/views/admin/catalog/discount_form.html
+++ b/assets/views/admin/catalog/discount_form.html
@@ -38,7 +38,7 @@
x-text="row.label || ('#' + row.id)">
{{ t(key="price", lang=lang | default(value='sk')) }}:
-
+ €
@@ -80,9 +80,9 @@
class="flex flex-wrap items-center justify-between gap-3 rounded-radius border border-outline bg-surface-alt px-4 py-2.5 text-sm dark:border-outline-dark dark:bg-surface-dark/40">
{{ t(key="discount-preview-after", lang=lang | default(value='sk')) }}
-
+
+ x-text="money(afterCents(row)) + ' €'">
@@ -106,7 +106,6 @@
label: r.label || '',
regular_cents: r.regular_cents,
regular_price: r.regular_price,
- currency: r.currency,
mode: r.mode || 'fixed',
fixed: r.fixed || '',
percent: r.percent || '',
diff --git a/assets/views/admin/catalog/product_form.html b/assets/views/admin/catalog/product_form.html
index c079944..bc3b148 100644
--- a/assets/views/admin/catalog/product_form.html
+++ b/assets/views/admin/catalog/product_form.html
@@ -21,9 +21,9 @@
{{ ui::csrf_field() }}
{% if product %}
- {% set v_name = product.name %}{% set v_currency = product.currency %}{% set v_desc = product.description | default(value="") %}{% set v_short = product.short_description | default(value="") %}{% set v_pub = product.published %}
+ {% set v_name = product.name %}{% set v_desc = product.description | default(value="") %}{% set v_short = product.short_description | default(value="") %}{% set v_pub = product.published %}
{% else %}
- {% set v_name = "" %}{% set v_currency = "EUR" %}{% set v_desc = "" %}{% set v_short = "" %}{% set v_pub = false %}
+ {% set v_name = "" %}{% set v_desc = "" %}{% set v_short = "" %}{% set v_pub = false %}
{% endif %}
{% set inp = "w-full rounded-radius border border-outline bg-surface-alt px-3 py-2 text-sm text-on-surface focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:border-outline-dark dark:bg-surface-dark-alt/50 dark:text-on-surface-dark dark:focus-visible:outline-primary-dark" %}
{% set sublabel = "text-xs font-medium text-on-surface/70 dark:text-on-surface-dark/70" %}
@@ -33,11 +33,6 @@
{{ ui::input(name="name", id="name", required=true, value=v_name) }}
-
- {{ t(key="currency", lang=lang | default(value='sk')) }}
- {{ ui::input(name="currency", id="currency", value=v_currency, attrs='maxlength="3"', extra="uppercase") }}
-
-
{# --- Variants / options editor ------------------------------------------- #}
{# Each product is sold as one or more variants (a free-text label such as #}
{# "10cm x 13cm" or "5ml" plus its own price). Price is required. Stock is #}
@@ -76,7 +71,7 @@
- {{ t(key="price", lang=lang | default(value='sk')) }}
+ {{ t(key="price", lang=lang | default(value='sk')) }} (€)
diff --git a/assets/views/admin/catalog/products.html b/assets/views/admin/catalog/products.html
index a64ac65..16093d8 100644
--- a/assets/views/admin/catalog/products.html
+++ b/assets/views/admin/catalog/products.html
@@ -122,7 +122,7 @@
- {% if product.has_options %}{{ t(key="from-price", price=product.regular_price, lang=lang | default(value='sk')) }}{% else %}{{ product.regular_price }}{% endif %} {{ product.currency }}
+ {% if product.has_options %}{{ t(key="from-price", price=product.regular_price, lang=lang | default(value='sk')) }}{% else %}{{ product.regular_price }}{% endif %} €
{{ product.variant_count }}
{{ ui::eff_price(p=product) }}
diff --git a/assets/views/admin/customers/price_form.html b/assets/views/admin/customers/price_form.html
index 1bb6c73..4558b75 100644
--- a/assets/views/admin/customers/price_form.html
+++ b/assets/views/admin/customers/price_form.html
@@ -38,15 +38,15 @@
{{ t(key="price", lang=lang | default(value='sk')) }}
- {{ product.regular_price }} {{ product.currency }}
+ {{ product.regular_price }} €
{{ t(key="business-price", lang=lang | default(value='sk')) }}
- {{ product.business_price }} {{ product.currency }}
+ {{ product.business_price }} €
{{ t(key="effective-price", lang=lang | default(value='sk')) }}
- {{ product.effective_price }} {{ product.currency }}
+ {{ product.effective_price }} €
@@ -62,7 +62,7 @@
{{ t(key="negotiated-price", lang=lang | default(value='sk')) }}
- {{ product.currency }}
+ €
{{ t(key="discount-must-be-positive", lang=lang | default(value='sk')) }}
diff --git a/assets/views/admin/customers/show.html b/assets/views/admin/customers/show.html
index 172790b..aba3a30 100644
--- a/assets/views/admin/customers/show.html
+++ b/assets/views/admin/customers/show.html
@@ -82,14 +82,14 @@
{% if product.business_reduced %}
- {{ product.business_price }} {{ product.currency }}
+ {{ product.business_price }} €
{{ product.regular_price }}
{% else %}
- {{ product.business_price }} {{ product.currency }}
+ {{ product.business_price }} €
{% endif %}
- {{ product.effective_price }} {{ product.currency }}
+ {{ product.effective_price }} €
{% if product.collision %}{{ ui::badge(label=t(key="collision", lang=lang | default(value='sk')), variant="warning") }} {% endif %}
diff --git a/assets/views/admin/orders/index.html b/assets/views/admin/orders/index.html
index e44897f..e8994e1 100644
--- a/assets/views/admin/orders/index.html
+++ b/assets/views/admin/orders/index.html
@@ -44,7 +44,7 @@
{{ ui::badge(label=t(key="order-status-" ~ order.status, lang=lang | default(value='sk')), variant="neutral") }}
- {{ order.total }} {{ order.currency }}
+ {{ order.total }} €
{{ ui::button(variant="outline-secondary", label=t(key="view", lang=lang | default(value='sk')), href="/admin/orders/" ~ order.id, size="px-3 py-1.5 text-xs") }}
diff --git a/assets/views/admin/orders/show.html b/assets/views/admin/orders/show.html
index d8d4f2e..40cedc8 100644
--- a/assets/views/admin/orders/show.html
+++ b/assets/views/admin/orders/show.html
@@ -38,14 +38,14 @@
{{ item.product_name }}{% if item.variant_label %} · {{ item.variant_label }} {% endif %}
{{ item.quantity }}
- {{ item.line_total }} {{ order.currency }}
+ {{ item.line_total }} €
{% endfor %}
@@ -75,7 +75,7 @@
{{ t(key="checkout-carrier", lang=lang | default(value='sk')) }}
-
{{ order.carrier_name }} — {{ order.shipping }} {{ order.currency }}
+
{{ order.carrier_name }} — {{ order.shipping }} €
{% if order.pickup_point_name %}
{{ order.pickup_point_name }}
{% endif %}
diff --git a/assets/views/macros/ui.html b/assets/views/macros/ui.html
index 31ee1b2..7564736 100644
--- a/assets/views/macros/ui.html
+++ b/assets/views/macros/ui.html
@@ -132,10 +132,10 @@
{% macro eff_price(p, preview=false) -%}
{%- if preview -%}{% set strong = "text-info" %}{%- else -%}{% set strong = "text-primary dark:text-primary-dark" %}{%- endif -%}
{% if p.effective_reduced %}
-
{{ p.effective_price }} {{ p.currency }}
+
{{ p.effective_price }} €
(−{{ p.effective_percent_off }}%)
{% else %}
-{{ p.effective_price }} {{ p.currency }}
+{{ p.effective_price }} €
{% endif %}
{%- endmacro eff_price %}
diff --git a/assets/views/shop/_card.html b/assets/views/shop/_card.html
index ae8c8b4..8dcb4b2 100644
--- a/assets/views/shop/_card.html
+++ b/assets/views/shop/_card.html
@@ -38,11 +38,11 @@
{% endif %}
{% if product.on_sale %}
- Price {% if product.has_options %}{{ t(key="from-price", price=product.price, lang=lang | default(value='sk')) }}{% else %}{{ product.price }}{% endif %} {{ product.currency }}
- {{ product.regular_price }} {{ product.currency }}
+ Price {% if product.has_options %}{{ t(key="from-price", price=product.price, lang=lang | default(value='sk')) }}{% else %}{{ product.price }}{% endif %} €
+ {{ product.regular_price }} €
{% else %}
-
Price {% if product.has_options %}{{ t(key="from-price", price=product.price, lang=lang | default(value='sk')) }}{% else %}{{ product.price }}{% endif %} {{ product.currency }}
+
Price {% if product.has_options %}{{ t(key="from-price", price=product.price, lang=lang | default(value='sk')) }}{% else %}{{ product.price }}{% endif %} €
{% endif %}
diff --git a/assets/views/shop/_cart_body.html b/assets/views/shop/_cart_body.html
index cfe0a94..cc4b352 100644
--- a/assets/views/shop/_cart_body.html
+++ b/assets/views/shop/_cart_body.html
@@ -23,10 +23,10 @@
{% if item.on_sale %}
- {{ item.price }} {{ item.currency }}
+ {{ item.price }} €
{{ item.regular_price }}
{% else %}
- {{ item.price }} {{ item.currency }}
+ {{ item.price }} €
{% endif %}
@@ -48,7 +48,7 @@
class="w-20 rounded-radius border border-outline bg-surface-alt px-2 py-1 text-sm text-on-surface focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:cursor-not-allowed disabled:opacity-75 dark:border-outline-dark dark:bg-surface-dark-alt/50 dark:text-on-surface-dark dark:focus-visible:outline-primary-dark">
- {{ item.line_total }} {{ item.currency }}
+ {{ item.line_total }} €