Skip to content

Commit

Permalink
[Discounts] fix: show accurate subtotal price for cart (#2775)
Browse files Browse the repository at this point in the history
* fix: show accurate subtotal price for cart

* chore: update subtotal in cart drawer

* chore: update copy for estimated total, adjust spacing and placement

* fix: use cart__footer selector for margin instead

* fix: make copy sentence case

* Update 20 translation files

* Update 3 translation files

* Update 7 translation files

---------

Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
  • Loading branch information
mathiusj and translation-platform[bot] committed Jul 11, 2023
1 parent 6e74652 commit 45bced2
Show file tree
Hide file tree
Showing 36 changed files with 109 additions and 105 deletions.
2 changes: 1 addition & 1 deletion assets/component-cart.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ cart-items {
}

.cart__footer .discounts {
margin-top: 1rem;
margin-bottom: 1rem;
}

.cart__note {
Expand Down
6 changes: 5 additions & 1 deletion assets/component-totals.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
margin-left: 2rem;
}

.totals__subtotal-value {
.totals__total {
margin-top: .5rem;
}

.totals__total-value {
font-size: 1.8rem;
}

Expand Down
6 changes: 3 additions & 3 deletions locales/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Вашата количка",
"caption": "Артикули в количката",
"remove_title": "Премахване на {{ title }}",
"subtotal": "Междинна сума",
"new_subtotal": "Нова междинна сума",
"checkout": "Преминаване към плащане",
"empty": "Количката ви е празна.",
"cart_error": "При актуализирането на количката ви възникна грешка. Опитайте отново.",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Имате профил?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Влезте</a> за по-бързо преминаване към плащане."
}
},
"estimated_total": "Очаквана обща сума",
"new_estimated_total": "Нова очаквана обща сума"
},
"footer": {
"payment": "Начини на плащане"
Expand Down
6 changes: 3 additions & 3 deletions locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@
"title": "Váš košík",
"caption": "Položky košíku",
"remove_title": "Odebrat: {{ title }}",
"subtotal": "Mezisoučet",
"new_subtotal": "Nový mezisoučet",
"note": "Zvláštní pokyny k objednávce",
"checkout": "Pokladna",
"empty": "Košík je prázdný",
Expand All @@ -306,7 +304,9 @@
"login": {
"title": "Máte účet?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Přihlaste se</a>, abyste si urychlili proces pokladny."
}
},
"estimated_total": "Odhadovaný součet",
"new_estimated_total": "Nový odhadovaný součet"
},
"footer": {
"payment": "Platební metody"
Expand Down
6 changes: 3 additions & 3 deletions locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Din indkøbskurv",
"caption": "Varer i indkøbskurv",
"remove_title": "Fjern {{ title }}",
"subtotal": "Subtotal",
"new_subtotal": "Ny subtotal",
"note": "Særlige instruktioner til ordre",
"checkout": "Gå til betaling",
"empty": "Din indkøbskurv er tom",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Har du en konto?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Log ind</a> for at betale hurtigere."
}
},
"estimated_total": "Estimeret totalbeløb",
"new_estimated_total": "Ny estimeret totalbeløb"
},
"footer": {
"payment": "Betalingsmetoder"
Expand Down
6 changes: 3 additions & 3 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Dein Warenkorb",
"caption": "Artikel im Warenkorb",
"remove_title": "{{ title }} entfernen",
"subtotal": "Zwischensumme",
"new_subtotal": "Neue Zwischensumme",
"note": "Spezielle Bestellanweisungen",
"checkout": "Auschecken",
"empty": "Dein Warenkorb ist leer",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Hast du ein Konto?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Logge dich ein</a>, damit es beim Checkout schneller geht."
}
},
"estimated_total": "Geschätzte Gesamtkosten",
"new_estimated_total": "Neuer geschätzter Gesamtbetrag"
},
"footer": {
"payment": "Zahlungsmethoden"
Expand Down
6 changes: 3 additions & 3 deletions locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Το καλάθι σας",
"caption": "Στοιχεία στο καλάθι",
"remove_title": "Κατάργηση {{ title }}",
"subtotal": "Υποσύνολο",
"new_subtotal": "Νέο υποσύνολο",
"note": "Ειδικές οδηγίες παραγγελίας",
"checkout": "Ολοκλήρωση αγοράς",
"empty": "Το καλάθι σας είναι κενό",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Έχετε λογαριασμό;",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Συνδεθείτε</a> για ταχύτερη ολοκλήρωση των αγορών σας."
}
},
"estimated_total": "Εκτιμώμενο σύνολο",
"new_estimated_total": "Νέο εκτιμώμενο σύνολο"
},
"footer": {
"payment": "Μέθοδοι πληρωμής"
Expand Down
4 changes: 2 additions & 2 deletions locales/en.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@
"title": "Your cart",
"caption": "Cart items",
"remove_title": "Remove {{ title }}",
"subtotal": "Subtotal",
"new_subtotal": "New subtotal",
"estimated_total": "Estimated total",
"new_estimated_total": "New estimated total",
"note": "Order special instructions",
"checkout": "Check out",
"empty": "Your cart is empty",
Expand Down
6 changes: 3 additions & 3 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@
"title": "Tu carrito",
"caption": "Artículos en el carrito",
"remove_title": "Eliminar {{ title }}",
"subtotal": "Subtotal",
"new_subtotal": "Nuevo subtotal",
"note": "Instrucciones especiales del pedido",
"checkout": "Pagar pedido",
"empty": "Tu carrito esta vacío",
Expand All @@ -296,7 +294,9 @@
"login": {
"title": "¿Tienes una cuenta?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Inicia sesión</a> para finalizar tus compras con mayor rapidez."
}
},
"estimated_total": "Total estimado",
"new_estimated_total": "Nuevo total estimado"
},
"footer": {
"payment": "Formas de pago"
Expand Down
6 changes: 3 additions & 3 deletions locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Ostoskorisi",
"caption": "Ostoskorin tuotteet",
"remove_title": "Poista {{ title }}",
"subtotal": "Välisumma",
"new_subtotal": "Uusi välisumma",
"note": "Tilauksen erityisohjeet",
"checkout": "Kassa",
"empty": "Ostoskorisi on tyhjä",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Onko sinulla tili?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Kirjaudu sisään</a>, jotta voit maksaa kassalla nopeammin."
}
},
"estimated_total": "Arvioitu kokonaishinta",
"new_estimated_total": "Uusi arvioitu kokonaishinta"
},
"footer": {
"payment": "Maksutavat"
Expand Down
6 changes: 3 additions & 3 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@
"title": "Votre panier",
"caption": "Articles du panier",
"remove_title": "Supprimer {{ title }}",
"subtotal": "Sous-total",
"new_subtotal": "Nouveau sous-total",
"note": "Instructions spéciales concernant la commande",
"checkout": "Procéder au paiement",
"empty": "Votre panier est vide",
Expand All @@ -296,7 +294,9 @@
"login": {
"title": "Vous possédez un compte ?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Connectez-vous</a> pour payer plus vite."
}
},
"estimated_total": "Total estimé",
"new_estimated_total": "Nouveau total estimé"
},
"footer": {
"payment": "Moyens de paiement"
Expand Down
6 changes: 3 additions & 3 deletions locales/hr-HR.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@
"title": "Vaša košarica",
"caption": "Artikli u kokšarici",
"remove_title": "Ukloni {{ title }}",
"subtotal": "Podzbroj",
"new_subtotal": "Novi podzbroj",
"note": "Ostale posebne upute",
"checkout": "Završi kupnju",
"empty": "Vaša je košarica prazna",
Expand All @@ -296,7 +294,9 @@
"login": {
"title": "Imate li račun?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Prijavite se</a> za bržu provjeru."
}
},
"estimated_total": "Procijenjen ukupni iznos",
"new_estimated_total": "Novi procijenjeni ukupni iznos"
},
"footer": {
"payment": "Načini plaćanja"
Expand Down
6 changes: 3 additions & 3 deletions locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Kosár",
"caption": "Kosárban lévő termékek",
"remove_title": "{{ title }} eltávolítása",
"subtotal": "Részösszeg:",
"new_subtotal": "Új részösszeg:",
"note": "Megjegyzések a rendeléssel kapcsolatban",
"checkout": "Megrendelés",
"empty": "A kosarad üres",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Már van fiókod?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Jelentkezz be</a> a gyorsabb fizetéshez."
}
},
"estimated_total": "Becsült végösszeg",
"new_estimated_total": "Új becsült végösszeg"
},
"footer": {
"payment": "Fizetési módok"
Expand Down
6 changes: 3 additions & 3 deletions locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Keranjang Anda",
"caption": "Item di keranjang",
"remove_title": "Hapus {{ title }}",
"subtotal": "Subtotal",
"new_subtotal": "Subtotal baru",
"note": "Instruksi khusus pesanan",
"checkout": "Check out",
"empty": "Keranjang Anda kosong",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Sudah punya akun?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Login</a> untuk checkout lebih cepat."
}
},
"estimated_total": "Estimasi total",
"new_estimated_total": "Estimasi total baru"
},
"footer": {
"payment": "Metode pembayaran"
Expand Down
6 changes: 3 additions & 3 deletions locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@
"title": "Il tuo carrello",
"caption": "Articoli nel carrello",
"remove_title": "Rimuovi {{ title }}",
"subtotal": "Subtotale",
"new_subtotal": "Nuovo subtotale",
"note": "Istruzioni speciali per l'ordine",
"checkout": "Check-out",
"empty": "Il tuo carrello è vuoto",
Expand All @@ -296,7 +294,9 @@
"login": {
"title": "Hai un account?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Accedi</a> per un check-out più veloce."
}
},
"estimated_total": "Totale stimato",
"new_estimated_total": "Nuovo totale stimato"
},
"footer": {
"payment": "Metodi di pagamento"
Expand Down
6 changes: 3 additions & 3 deletions locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "あなたのカート",
"caption": "カートアイテム",
"remove_title": "{{ title }}を削除する",
"subtotal": "小計",
"new_subtotal": "新しい小計",
"note": "注文に関する特別な指示・備考",
"checkout": "ご購入手続きへ",
"empty": "カートは空です",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "アカウントをお持ちですか?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">ログイン</a>することで、チェックアウトがスピーディーに行えます。"
}
},
"estimated_total": "見積もり合計",
"new_estimated_total": "新たな推定総額"
},
"footer": {
"payment": "決済方法"
Expand Down
6 changes: 3 additions & 3 deletions locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "카트",
"caption": "카트 품목",
"remove_title": "{{ title }} 제거",
"subtotal": "소계",
"new_subtotal": "새로 계산된 소계",
"note": "주문 특별 지침",
"checkout": "결제",
"empty": "카트가 비어 있습니다",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "계정이 있습니까?",
"paragraph_html": "더 빠르게 결제하려면 <a href=\"{{ link }}\" class=\"link underlined-link\">로그인</a>하십시오."
}
},
"estimated_total": "예상 총액",
"new_estimated_total": "새로운 예상 총액"
},
"footer": {
"payment": "결제 방법"
Expand Down
6 changes: 3 additions & 3 deletions locales/lt-LT.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@
"title": "Jūsų krepšelis",
"caption": "Krepšelio turinys",
"remove_title": "Pašalinti {{ title }}",
"subtotal": "Tarpinė suma",
"new_subtotal": "Nauja tarpinė suma",
"note": "Specialūs nurodymai dėl užsakymo",
"checkout": "Atsiskaityti",
"empty": "Jūsų krepšelis tuščias",
Expand All @@ -306,7 +304,9 @@
"login": {
"title": "Turite paskyrą?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Prisijunkite</a> ir atsiskaitysite greičiau."
}
},
"estimated_total": "Apskaičiuota bendra suma",
"new_estimated_total": "Nauja apskaičiuota bendra suma"
},
"footer": {
"payment": "Mokėjimo būdai"
Expand Down
6 changes: 3 additions & 3 deletions locales/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Handlekurven din",
"caption": "Varer i handlekurven",
"remove_title": "Fjern {{ title }}",
"subtotal": "Delsum",
"new_subtotal": "Ny delsum",
"note": "Spesielle instruksjoner for bestillingen",
"checkout": "Kasse",
"empty": "Handlekurven din er tom",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Har du en konto?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Logg på</a> for å betale raskere."
}
},
"estimated_total": "Estimert totalsum",
"new_estimated_total": "Ny estimert totalsum"
},
"footer": {
"payment": "Betalingsmåter"
Expand Down
6 changes: 3 additions & 3 deletions locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@
"title": "Je winkelwagen",
"caption": "Artikelen in winkelwagen",
"remove_title": "{{ title }} verwijderen",
"subtotal": "Subtotaal",
"new_subtotal": "Nieuw subtotaal",
"note": "Speciale instructies voor bestelling",
"checkout": "Afrekenen",
"empty": "Je winkelwagen is leeg",
Expand All @@ -286,7 +284,9 @@
"login": {
"title": "Heb je een account?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Log in</a> om sneller af te rekenen."
}
},
"estimated_total": "Geschat totaal",
"new_estimated_total": "Nieuw geschat totaal"
},
"footer": {
"payment": "Betaalmethoden"
Expand Down
6 changes: 3 additions & 3 deletions locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@
"title": "Twój koszyk",
"caption": "Pozycje w koszyku",
"remove_title": "Usuń {{ title }}",
"subtotal": "Suma częściowa",
"new_subtotal": "Nowa suma częściowa",
"note": "Specjalne instrukcje do zamówienia",
"checkout": "Realizuj zakup",
"empty": "Twój koszyk jest pusty",
Expand All @@ -306,7 +304,9 @@
"login": {
"title": "Masz już konto?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Zaloguj się</a>, aby szybciej realizować zakupy."
}
},
"estimated_total": "Przewidywana suma",
"new_estimated_total": "Nowa przewidywana suma"
},
"footer": {
"payment": "Metody płatności"
Expand Down
Loading

0 comments on commit 45bced2

Please sign in to comment.