From 19ab1e279fbe7026fe2baf542284f1310e1f4c74 Mon Sep 17 00:00:00 2001 From: Agustin Carmona <102974092+agustinbv@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:25:45 -0300 Subject: [PATCH 1/5] Added street address to mapping dropdown --- Block/Adminhtml/System/Config/Form/Field/VarsMap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Block/Adminhtml/System/Config/Form/Field/VarsMap.php b/Block/Adminhtml/System/Config/Form/Field/VarsMap.php index 3b5f6d6a..2cc9be74 100644 --- a/Block/Adminhtml/System/Config/Form/Field/VarsMap.php +++ b/Block/Adminhtml/System/Config/Form/Field/VarsMap.php @@ -43,6 +43,7 @@ protected function _getAddressAtt() $ret['default_shipping##state'] = __('Shipping State'); $ret['default_shipping##telephone'] = __('Shipping Telephone'); $ret['default_shipping##company'] = __('Shipping Company'); + $ret['default_shipping##street'] = __('Shipping Street'); $ret['default_billing##zip'] = __('Billing Zip Code'); $ret['default_billing##country'] = __('Billing Country'); @@ -50,6 +51,7 @@ protected function _getAddressAtt() $ret['default_billing##state'] = __('Billing State'); $ret['default_billing##telephone'] = __('Billing Telephone'); $ret['default_billing##company'] = __('Billing Company'); + $ret['default_billing##street'] = __('Billing Street'); return $ret; } From 2ce66aa1575adbf0faa5347ef1d97b04287965ac Mon Sep 17 00:00:00 2001 From: Agustin Carmona <102974092+agustinbv@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:27:09 -0300 Subject: [PATCH 2/5] Modified _getAddressValues(), modified listed customer attributes accordingly --- Helper/Data.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Helper/Data.php b/Helper/Data.php index 82ba4a4e..0cb86147 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -397,12 +397,14 @@ private function getAddressAtt() 'default_shipping##state', 'default_shipping##telephone', 'default_shipping##company', + 'default_shipping##street', 'default_billing##zip', 'default_billing##country', 'default_billing##city', 'default_billing##state', 'default_billing##telephone', - 'default_billing##company' + 'default_billing##company', + 'default_billing##street' ]; foreach($elements as $item) { @@ -726,11 +728,10 @@ private function _getAddressValues(\Magento\Customer\Model\Address\AbstractAddre if ($address) { $street = $address->getStreet(); if (count($street) > 1) { - $addressData["addr1"] = $street[0]; - $addressData["addr2"] = $street[1]; + $addressData["street"] = $street[0].' '.$street[1]; } else { if (!empty($street[0])) { - $addressData["addr1"] = $street[0]; + $addressData["street"] = $street[0]; } } if ($address->getCity()) { From 3e7610160946c6f809a6437fc77cc0be1b476fcd Mon Sep 17 00:00:00 2001 From: Agustin Carmona <102974092+agustinbv@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:28:02 -0300 Subject: [PATCH 3/5] Updated es_ES.csv --- i18n/es_ES.csv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i18n/es_ES.csv b/i18n/es_ES.csv index 1d487a72..8dc74fc9 100644 --- a/i18n/es_ES.csv +++ b/i18n/es_ES.csv @@ -34,12 +34,14 @@ Shipping City,Ciudad de Envío Shipping State,Estado de Envío Shipping Telephone,Teléfono de Envío Shipping Company,Empresa de Envío +Shipping Street,Calle de envío Billing Zip Code,Código Postal de Facturación Billing Country,País de Facturación Billing City,Ciudad de Facturación Billing State,Estado de Facturación Billing Telephone,Teléfono de Facturación Billing Company,Empresa de Facturación +Billing Street, Calle de facturación Mailchimp Batches,Lotes de Mailchimp Mailchimp Cron,Mailchimp Cron User name:,Nombre de usuario: @@ -177,4 +179,4 @@ MC Account name,Nombre de la cuenta de MC Store name,Nombre de la tienda List name,Nombre de la lista Mailchimp Sync,Sincronización de Mailchimp -Sync all customers or only customer with orders, Sincronza todos los clientes o solo los que tienen ordenes \ No newline at end of file +Sync all customers or only customer with orders, Sincronza todos los clientes o solo los que tienen ordenes From 5c83ff1adce8d635c37c5fe5d408697e016785c8 Mon Sep 17 00:00:00 2001 From: Agustin Carmona <102974092+agustinbv@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:28:36 -0300 Subject: [PATCH 4/5] Updated fr_FR.csv --- i18n/fr_FR.csv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i18n/fr_FR.csv b/i18n/fr_FR.csv index 686bbdc9..5ec65dcb 100644 --- a/i18n/fr_FR.csv +++ b/i18n/fr_FR.csv @@ -34,12 +34,14 @@ Shipping City,Ville d'expédition Shipping State,État d'expédition Shipping Telephone,Téléphone d'expédition Shipping Company,Société de livraison +Shipping Street,Rue de la navigation Billing Zip Code,Code postal de facturation Billing Country,Pays de facturation Billing City,Ville de facturation Billing State,État de facturation Billing Telephone,Téléphone de facturation Billing Company,Société de facturation +Billing Street,Rue de la facturation Mailchimp Batches,Lots Mailchimp Mailchimp Cron,Mailchimp Cron User name:,Nom d'utilisateur : From 376dbf2215320f61dd3da8027e1226ed315306bc Mon Sep 17 00:00:00 2001 From: Agustin Carmona <102974092+agustinbv@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:29:42 -0300 Subject: [PATCH 5/5] Updated it_IT.csv --- i18n/it_IT.csv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i18n/it_IT.csv b/i18n/it_IT.csv index 0097de2e..1996a014 100644 --- a/i18n/it_IT.csv +++ b/i18n/it_IT.csv @@ -34,12 +34,14 @@ Shipping City,Città di spedizione Shipping State,Stato spedizione Shipping Telephone,Telefono spedizione Shipping Company,Compagnia di spedizione +Shipping Street,Via di spedizione Billing Zip Code,CAP fatturazione Billing Country,Paese fatturazione Billing City,Città fatturazione Billing State,Stato fatturazione Billing Telephone,Telefono fatturazione Billing Company,Compagnia fatturazione +Billing Street,Via della fatturazione Mailchimp Batches,Batch Mailchimp Mailchimp Cron,Cron Mailchimp User name:,Nome utente: