From cb51f0d9e960bb054701b665d02a0a676eec508d Mon Sep 17 00:00:00 2001 From: Mat Caissy Date: Wed, 3 Aug 2016 10:21:49 -0700 Subject: [PATCH] [Timber] update cart a11y qty input and button (#561) --- locales/de.json | 4 +++- locales/en.default.json | 4 +++- locales/es.json | 4 +++- locales/fr.json | 4 +++- locales/pt-BR.json | 4 +++- locales/pt-PT.json | 4 +++- snippets/ajax-cart-template.liquid | 18 ++++++++++++------ templates/cart.liquid | 10 +++++----- 8 files changed, 35 insertions(+), 17 deletions(-) diff --git a/locales/de.json b/locales/de.json index bcf7ec7f9..ef67369a3 100644 --- a/locales/de.json +++ b/locales/de.json @@ -65,7 +65,9 @@ "empty": "Ihr Einkaufswagen ist im Moment leer.", "continue_browsing_html": "Mit der Suche hier fortfahren.", "close_cart": "Einkaufswagen schließen", - "savings_html": "Sie sparen {{ price }}" + "savings_html": "Sie sparen {{ price }}", + "reduce_quantity": "Artikelmenge um eins reduzieren", + "increase_quantity": "Artikelmenge um eins erhöhen" }, "label": { "product": "Artikel", diff --git a/locales/en.default.json b/locales/en.default.json index 235df260c..d9b6b6553 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -65,7 +65,9 @@ "empty": "Your cart is currently empty.", "continue_browsing_html": "Continue browsing here.", "close_cart": "Close Cart", - "savings_html": "You're saving {{ price }}" + "savings_html": "You're saving {{ price }}", + "reduce_quantity": "Reduce item quantity by one", + "increase_quantity": "Increase item quantity by one" }, "label": { "product": "Product", diff --git a/locales/es.json b/locales/es.json index 8c6be51fd..91b1b63a6 100644 --- a/locales/es.json +++ b/locales/es.json @@ -65,7 +65,9 @@ "empty": "Su carrito actualmente está vacío.", "continue_browsing_html": "Continúe explorando aquí.", "close_cart": "Cerrar carrito", - "savings_html": "Está ahorrando {{ price }}" + "savings_html": "Está ahorrando {{ price }}", + "reduce_quantity": "Quitar uno a la cantidad de artículos", + "increase_quantity": "Aumentar uno a la cantidad de artículos" }, "label": { "product": "Producto", diff --git a/locales/fr.json b/locales/fr.json index 2b8ba9207..df67bcfc6 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -65,7 +65,9 @@ "empty": "Votre panier est vide.", "continue_browsing_html": "Retourner au magasinage.", "close_cart": "Fermer le panier", - "savings_html": "Vous économisez {{ price }}" + "savings_html": "Vous économisez {{ price }}", + "reduce_quantity": "Réduire la quantité de l'article de un", + "increase_quantity": "Augmenter la quantité de l'article de un" }, "label": { "product": "Produit", diff --git a/locales/pt-BR.json b/locales/pt-BR.json index cc8de5429..15f7abc59 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -65,7 +65,9 @@ "empty": "Seu carrinho está vazio no momento.", "continue_browsing_html": "Continue navegando aqui.", "close_cart": "Fechar carrinho", - "savings_html": "Você está economizando {{ price }}" + "savings_html": "Você está economizando {{ price }}", + "reduce_quantity": "Reduzir quantidade em uma unidade", + "increase_quantity": "Aumentar quantidade em uma unidade" }, "label": { "product": "Produto", diff --git a/locales/pt-PT.json b/locales/pt-PT.json index d21c1ba82..f03cfbd99 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -65,7 +65,9 @@ "empty": "O seu carrinho de compras está neste momento vazio.", "continue_browsing_html": "Continue a ver aqui.", "close_cart": "Fechar Carrinho de Compras", - "savings_html": "Está a poupar {{ price }}" + "savings_html": "Está a poupar {{ price }}", + "reduce_quantity": "Reduza a quantidade do artigo em um", + "increase_quantity": "Aumente a quantidade do artigo em um" }, "label": { "product": "Produto", diff --git a/snippets/ajax-cart-template.liquid b/snippets/ajax-cart-template.liquid index b940fdd0d..719cc87cc 100755 --- a/snippets/ajax-cart-template.liquid +++ b/snippets/ajax-cart-template.liquid @@ -40,12 +40,14 @@
@@ -110,12 +112,14 @@
{% endraw %} @@ -125,12 +129,14 @@
{% endraw %} diff --git a/templates/cart.liquid b/templates/cart.liquid index e3bf36f23..6aeac1a5b 100755 --- a/templates/cart.liquid +++ b/templates/cart.liquid @@ -90,7 +90,7 @@ {% for discount in item.discounts %} {{ discount.title }} - {% endfor %} + {% endfor %} {% endfor %} @@ -111,12 +111,12 @@ {% if cart.total_discounts > 0 %} {% assign savings = cart.total_discounts | money %}

- {{ 'cart.general.savings_html' | t: price: savings }} + {{ 'cart.general.savings_html' | t: price: savings }}

- {% endif %} + {% endif %}

{{ 'cart.general.shipping_at_checkout' | t }}

- - + +