Skip to content

Commit

Permalink
Merge pull request #1887 from mailchimp/Issue1863-2.2
Browse files Browse the repository at this point in the history
 closes #1863 for magento 2.2
  • Loading branch information
gonzaloebiz authored Feb 23, 2024
2 parents 6ba2d14 + f28f667 commit e4c35e3
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 @@ -234,7 +234,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 e4c35e3

Please sign in to comment.