Skip to content

Commit

Permalink
Merge pull request #2307 from graphcommerce-org/feature/GCOM-1439
Browse files Browse the repository at this point in the history
Feature/gcom 1439
  • Loading branch information
paales authored Jun 28, 2024
2 parents 2e7eb3a + 378be86 commit b562c04
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-falcons-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/magento-cart-shipping-address': minor
'@graphcommerce/magento-graphcms': minor
---

Add save in address book checkbox to shipping address form
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
3 changes: 3 additions & 0 deletions examples/magento-graphcms/locales/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@ 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
CheckboxElement,
FormAutoSubmit,
FormPersist,
TextFieldElement,
Expand Down Expand Up @@ -151,6 +152,13 @@ export const ShippingAddressForm = React.memo<ShippingAddressFormProps>((props)
showValid
/>
</FormRow>
{customerQuery?.customer && (
<CheckboxElement
control={form.control}
name='saveInAddressBook'
label={<Trans id='Save in address book' />}
/>
)}

<ApolloCartErrorAlert error={error} />
<FormPersist form={form} name='ShippingAddressForm' />
Expand Down

0 comments on commit b562c04

Please sign in to comment.