Skip to content

Commit 1423276

Browse files
authored
Fix offers price trans (SallaApp#176)
* fix-offers-price-trans * fix-offers-price-trans
1 parent 54574c9 commit 1423276

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/views/components/product/offer.twig

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@
4646
<div class="slide--one-fourth">
4747
<div class="slide--offer-entry">
4848
<div class="p-3 flex-grow flex flex-col justify-center w-full">
49-
<p class="mb-1">{{ trans('pages.offer.buy_quantity_and_take', {quantity:discount.quantity_text, price:''})|number }}</p>
49+
<p class="mb-1">{{ trans('pages.offer.buy_quantity', {quantity:discount.quantity_text})|number }}</p>
5050
{% if discount.show_discounted_price %}
5151
<div class="text-sm text-gray-400">
52+
<span>{{ trans('pages.offer.with_price', {price:''}) }}</span>
5253
<span class="font-extrabold text-red-400 text-3xl">{{ discount.price|number({'.':'٫'}) }}</span> {{ user.currency.symbol }}
5354
</div>
5455
{% endif %}
@@ -68,8 +69,9 @@
6869
{% for discount in offer.discounts_table %}
6970
<div class="discount-list__item flex justify-between border-t pt-2.5">
7071
<div>
71-
<span>{{ trans('pages.offer.buy_quantity_and_take', {quantity:discount.quantity_text, price:''})|number }}</span>
72-
{% if discount.show_discounted_price %}
72+
<span>{{ trans('pages.offer.buy_quantity', {quantity:discount.quantity_text})|number }}</span>
73+
{% if discount.show_discounted_price %}
74+
<span>{{ trans('pages.offer.with_price', {price:''}) }}</span>
7375
<span class="font-bold text-red-400">{{ discount.price|number({'.':'٫'}) }}</span> {{ user.currency.symbol }}
7476
{% endif %}
7577
</div>

0 commit comments

Comments
 (0)