Skip to content

Commit

Permalink
TH-143: Themes > show free shipping instead of price 0 on the thank y…
Browse files Browse the repository at this point in the history
…ou page (#58)
  • Loading branch information
bj-anas authored Oct 14, 2024
1 parent 71a9cf8 commit b06c00c
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 13 deletions.
3 changes: 2 additions & 1 deletion themes/aura/locales/ar.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"one_piece_price": "سعر كل قطعة",
"quantity": "الكمية",
"coupon": "كوبون",
"vat": "الضريبة على القيمة المضافة"
"vat": "الضريبة على القيمة المضافة",
"free_shipping": "مجاني"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/aura/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"one_piece_price": "Unit price",
"quantity": "Quantity",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Free"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/aura/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
"one_piece_price": "Prix unité",
"quantity": "Quantité",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Gratuite"
}
},
"snippets": {
Expand Down
8 changes: 6 additions & 2 deletions themes/aura/sections/thankyou.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@
{%- endif -%}
<div class="head">
<div class="item">
{{ 'thankyou.details.shipping_cost' | t }}
{{ 'thankyou.details.shipping_cost' | t }}
</div>
<div class="data-item">
{{- order.shippingCost | money -}}
{% if order.shippingCost == 0 %}
{{ 'thankyou.details.free_shipping' | t }}
{% else %}
{{ order.shippingCost | money }}
{% endif %}
</div>
</div>
{%- if store.vat > 0 -%}
Expand Down
3 changes: 2 additions & 1 deletion themes/harmony/locales/ar.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"sub_total": "إجمالي قيمة المنتجات",
"quantity": "الكمية",
"coupon": "كوبون",
"vat": "الضريبة على القيمة المضافة"
"vat": "الضريبة على القيمة المضافة",
"free_shipping": "مجاني"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/harmony/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"sub_total": "Subtotal",
"quantity": "Quantity",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Free"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/harmony/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"sub_total": "Sous-total",
"quantity": "Quantité",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Gratuite"
}
},
"snippets": {
Expand Down
6 changes: 5 additions & 1 deletion themes/harmony/sections/thankyou.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@
{%- endif -%}
<li class="data-item">
<span>{{ 'thankyou.details.shipping_cost' | t }}</span>
<span>{{- order.shippingCost | money -}}</span>
{% if order.shippingCost == 0 %}
{{ 'thankyou.details.free_shipping' | t }}
{% else %}
{{ order.shippingCost | money }}
{% endif %}
</li>
{%- if store.vat > 0 -%}
<li class="data-item">
Expand Down
3 changes: 2 additions & 1 deletion themes/meraki/locales/ar.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"sub_total": "إجمالي قيمة المنتجات",
"quantity": "الكمية",
"coupon": "كوبون",
"vat": "الضريبة على القيمة المضافة"
"vat": "الضريبة على القيمة المضافة",
"free_shipping": "مجاني"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/meraki/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"sub_total": "Subtotal",
"quantity": "Quantity",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Free"
}
},
"snippets": {
Expand Down
3 changes: 2 additions & 1 deletion themes/meraki/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"sub_total": "Sous-total",
"quantity": "Quantité",
"coupon": "Coupon",
"vat": "VAT"
"vat": "VAT",
"free_shipping": "Gratuite"
}
},
"snippets": {
Expand Down
6 changes: 5 additions & 1 deletion themes/meraki/sections/thankyou.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@
{%- endif -%}
<li class="data-item">
<span>{{ 'thankyou.details.shipping_cost' | t }}</span>
<span>{{- order.shippingCost | money -}}</span>
{% if order.shippingCost == 0 %}
{{ 'thankyou.details.free_shipping' | t }}
{% else %}
{{ order.shippingCost | money }}
{% endif %}
</li>
{%- if store.vat > 0 -%}
<li class="data-item">
Expand Down

0 comments on commit b06c00c

Please sign in to comment.