Skip to content

Commit

Permalink
Merge pull request #2313 from graphcommerce-org/feature/GCOM-1441
Browse files Browse the repository at this point in the history
feat(GCOM-1441): Add the customerNote field to the shipping and customer address forms
  • Loading branch information
paales authored Jul 9, 2024
2 parents 7aa9b1b + 730c276 commit c4c6ad8
Show file tree
Hide file tree
Showing 14 changed files with 162 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-melons-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphcommerce/magento-cart-shipping-address": minor
"@graphcommerce/next-config" minor
---

Add the customerNote field to the shipping and customer address forms
4 changes: 4 additions & 0 deletions docs/framework/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ Determines if, after adding a cross-sell item to the cart, the user should be re

Default: 'false'

#### customerAddressNoteEnable: boolean

Enables the shipping notes field in the checkout

#### customerCompanyFieldsEnable: boolean

Enables company fields inside the checkout:
Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Dadurch werden alle Ihre Daten einschließlich Bestellverlauf und gespei
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "Mir ist bewusst, dass mein Konto gelöscht wird und dies nicht rückgängig gemacht werden kann."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Alle Produkte durchsuchen..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "Wir konnten keine Ergebnisse finden"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Produkte"
msgid "Results for ‘{search}’"
msgstr "Ergebnisse für ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Telefon"

msgid "Recently viewed products"
msgstr "Kürzlich angesehene Produkte"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Rezensions"
msgid "Save changes"
msgstr "Änderungen speichern"

msgid "Save in address book"
msgstr "Im Adressbuch speichern"

msgid "Save new password"
msgstr "Neues Passwort speichern"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Kundenkonto löschen"
msgid "Zip code or city"
msgstr "Postleitzahl oder Stadt"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Im Adressbuch speichern"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Zurück zur Startseite"
Expand All @@ -954,6 +963,10 @@ msgstr "In den Warenkorb"
msgid "canceled"
msgstr "abgebrochen"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Lieferschein"

msgid "invoiced"
msgstr "in Rechnung gestellt"

Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Doing so will remove all your data including order history and saved shi
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "I understand that my account will be deleted and this can not be undone."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Search all products..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "We couldn't find any results"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Products"
msgid "Results for ‘{search}’"
msgstr "Results for ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Telephone"

msgid "Recently viewed products"
msgstr "Recently viewed products"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Reviews"
msgid "Save changes"
msgstr "Save changes"

msgid "Save in address book"
msgstr "Save in address book"

msgid "Save new password"
msgstr "Save new password"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Delete account"
msgid "Zip code or city"
msgstr "Zip code or city"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Save in address book"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Return to home"
Expand All @@ -954,6 +963,10 @@ msgstr "Add to Cart"
msgid "canceled"
msgstr "canceled"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Shipping Note"

msgid "invoiced"
msgstr "invoiced"

Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Al hacerlo, se eliminarán todos sus datos, incluido el historial de ped
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "Entiendo que mi cuenta será eliminada y esto no se puede deshacer."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Buscar todos los productos..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "No pudimos encontrar ningún resultado"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Productos"
msgid "Results for ‘{search}’"
msgstr "Resultados para ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Teléfono"

msgid "Recently viewed products"
msgstr "Productos vistos recientemente"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Comentarios"
msgid "Save changes"
msgstr "Guardar cambios"

msgid "Save in address book"
msgstr "Guardar en la libreta de direcciones"

msgid "Save new password"
msgstr "Guardar nueva contraseña"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Eliminar cuenta"
msgid "Zip code or city"
msgstr "Código postal o ciudad"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Guardar en la libreta de direcciones"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Volver a inicio"
Expand All @@ -954,6 +963,10 @@ msgstr "Añadir al carrito"
msgid "canceled"
msgstr "cancelado"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Nota de envío"

msgid "invoiced"
msgstr "facturado"

Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Cela supprimera toutes vos données, y compris l'historique des commande
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "Je comprends que mon compte sera supprimé et que cela ne pourra pas être annulé."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Rechercher tous les produits..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "Nous n'avons trouvé aucun résultat"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Produits"
msgid "Results for ‘{search}’"
msgstr "Résultats pour ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Téléphone"

msgid "Recently viewed products"
msgstr "Derniers produits consultés"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Évaluations"
msgid "Save changes"
msgstr "Sauvegarder les modifications"

msgid "Save in address book"
msgstr "Enregistrer dans le carnet d'adresses"

msgid "Save new password"
msgstr "Sauvegarder le nouveau mot de passe"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Supprimer le compte"
msgid "Zip code or city"
msgstr "Code postal ou ville"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Enregistrer dans le carnet d'adresses"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Retour à l'accueil"
Expand All @@ -954,6 +963,10 @@ msgstr "Ajouter au panier"
msgid "canceled"
msgstr "annulée"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Note d'envoi"

msgid "invoiced"
msgstr "facturée"

Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "In tal modo verranno rimossi tutti i tuoi dati, inclusa la cronologia de
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "Capisco che il mio account verrà eliminato e che questa operazione non può essere annullata."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Cerca tutti i prodotti..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "Non abbiamo trovato risultati"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Prodotti"
msgid "Results for ‘{search}’"
msgstr "Risultati per ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Telefono"

msgid "Recently viewed products"
msgstr "Prodotti visionati recentemente"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Recensioni"
msgid "Save changes"
msgstr "Salva modifiche"

msgid "Save in address book"
msgstr "Salva in rubrica"

msgid "Save new password"
msgstr "Salva nuova password"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Elimina account"
msgid "Zip code or city"
msgstr "CAP o città"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Salva in rubrica"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Torna alla home"
Expand All @@ -954,6 +963,10 @@ msgstr "Aggiungi al carrello"
msgid "canceled"
msgstr "annullato"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Nota di spedizione"

msgid "invoiced"
msgstr "fatturato"

Expand Down
19 changes: 16 additions & 3 deletions examples/magento-graphcms/locales/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Dit zal al uw gegevens verwijderen, inclusief bestelgeschiedenis en opge
msgid "I understand that my account will be deleted and this can not be undone."
msgstr "Ik begrijp dat mijn account zal worden verwijderd en dat dit niet ongedaan kan worden gemaakt."

#. js-lingui-generated-id
msgid "Search all products..."
msgstr "Zoek alle producten..."

#. js-lingui-generated-id
msgid "We couldn't find any results"
msgstr "We konden geen resultaten vinden"
Expand Down Expand Up @@ -592,6 +596,10 @@ msgstr "Producten"
msgid "Results for ‘{search}’"
msgstr "Resultaten voor ‘{search}’"

#. js-lingui-generated-id
msgid "Telephone"
msgstr "Telefoon"

msgid "Recently viewed products"
msgstr "Recent bekeken producten"

Expand Down Expand Up @@ -637,9 +645,6 @@ msgstr "Reviews"
msgid "Save changes"
msgstr "Wijzigingen opslaan"

msgid "Save in address book"
msgstr "Opslaan in adresboek"

msgid "Save new password"
msgstr "Sla nieuw wachtwoord op"

Expand Down Expand Up @@ -943,6 +948,10 @@ msgstr "Verwijder account"
msgid "Zip code or city"
msgstr "Postcode of stad"

#. js-lingui-generated-id
msgid "Save in address book"
msgstr "Opslaan in adresboek"

#. js-lingui-generated-id
msgid "Return to home"
msgstr "Terug naar home"
Expand All @@ -954,6 +963,10 @@ msgstr "In winkelwagen"
msgid "canceled"
msgstr "geannuleerd"

#. js-lingui-generated-id
msgid "Shipping Note"
msgstr "Verzendnotitie"

msgid "invoiced"
msgstr "gefactureerd"

Expand Down
5 changes: 5 additions & 0 deletions packages/magento-cart-shipping-address/Config.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ extend input GraphCommerceConfig {
- VAT ID
"""
customerCompanyFieldsEnable: Boolean

"""
Enables the shipping notes field in the checkout
"""
customerAddressNoteEnable: Boolean
}

extend input GraphCommerceStorefrontConfig {
Expand Down
Loading

0 comments on commit c4c6ad8

Please sign in to comment.