From 7d63d0194410625f5660cb53666df3fa9d38194d Mon Sep 17 00:00:00 2001 From: Dajve Green Date: Fri, 23 Jun 2017 04:51:57 +0100 Subject: [PATCH] gh #1 Resolve issues with converting gender from carts and orders --- .../ImportExport/Converter/CartDataConverter.php | 4 ++-- .../ImportExport/Converter/OrderDataConverter.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/CartDataConverter.php b/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/CartDataConverter.php index ede77b9..8f243d1 100644 --- a/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/CartDataConverter.php +++ b/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/CartDataConverter.php @@ -74,8 +74,8 @@ public function convertToImportFormat(array $importedRecord, $skipNullValues = t } } - if (!empty($importedRecord['customerGender'])) { - $importedRecord['customerGender'] = $this->getOroGender($importedRecord['gender']); + if (!empty($return['customerGender'])) { + $return['customerGender'] = $this->getOroGender($return['customerGender']); } return $return; diff --git a/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/OrderDataConverter.php b/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/OrderDataConverter.php index a264667..6ced167 100644 --- a/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/OrderDataConverter.php +++ b/src/Allies/Bundle/ExtendedMagentoBundle/ImportExport/Converter/OrderDataConverter.php @@ -50,8 +50,8 @@ public function convertToImportFormat(array $importedRecord, $skipNullValues = t } } - if (!empty($importedRecord['customerGender'])) { - $importedRecord['customerGender'] = $this->getOroGender($importedRecord['gender']); + if (!empty($return['customerGender'])) { + $return['customerGender'] = $this->getOroGender($return['customerGender']); } return $return;