Skip to content

Commit

Permalink
Merge pull request #1886 from mailchimp/Issue1863-2.1
Browse files Browse the repository at this point in the history
closes #1863 for magento 2.1
  • Loading branch information
gonzaloebiz authored Feb 23, 2024
2 parents 5eb69fa + 0bac7e3 commit 202600a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Api/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function _buildCustomerData(\Magento\Customer\Model\Customer $customer
* @var $country \Magento\Directory\Model\Country
*/
$country = $this->_countryFactory->create()->loadByCode($address->getCountryId());
$customerAddress["country"] = $country->getName('en_US');
$customerAddress["country"] = preg_replace('/\&/', 'and',$country->getName('en_US'));
$customerAddress["country_code"] = $address->getCountryId();
}
if (count($customerAddress)) {
Expand Down

0 comments on commit 202600a

Please sign in to comment.