src/OroCRM/Bundle/MagentoBundle/ImportExport/Converter/CartDataConverter.php 1 location
|
@@ 51-55 (lines=5) @@
|
48 |
|
*/ |
49 |
|
public function convertToImportFormat(array $importedRecord, $skipNullValues = true) |
50 |
|
{ |
51 |
|
if ($this->context && $this->context->hasOption('channel')) { |
52 |
|
$importedRecord['store:channel:id'] = $this->context->getOption('channel'); |
53 |
|
$importedRecord['customer:channel:id'] = $this->context->getOption('channel'); |
54 |
|
$importedRecord['customer:group:channel:id'] = $this->context->getOption('channel'); |
55 |
|
} |
56 |
|
|
57 |
|
$importedRecord['cart_status'] = CartStatus::STATUS_OPEN; |
58 |
|
if (array_key_exists('is_active', $importedRecord)) { |
src/OroCRM/Bundle/MagentoBundle/ImportExport/Converter/CustomerDataConverter.php 1 location
|
@@ 41-45 (lines=5) @@
|
38 |
|
*/ |
39 |
|
public function convertToImportFormat(array $importedRecord, $skipNullValues = true) |
40 |
|
{ |
41 |
|
if ($this->context && $this->context->hasOption('channel')) { |
42 |
|
$importedRecord['store:channel:id'] = $this->context->getOption('channel'); |
43 |
|
$importedRecord['website:channel:id'] = $this->context->getOption('channel'); |
44 |
|
$importedRecord['group:channel:id'] = $this->context->getOption('channel'); |
45 |
|
} |
46 |
|
|
47 |
|
$importedRecord = parent::convertToImportFormat($importedRecord, $skipNullValues); |
48 |
|
$importedRecord = AttributesConverterHelper::addUnknownAttributes($importedRecord, $this->context); |
src/OroCRM/Bundle/MagentoBundle/ImportExport/Converter/OrderDataConverter.php 1 location
|
@@ 64-68 (lines=5) @@
|
61 |
|
} |
62 |
|
} |
63 |
|
|
64 |
|
if ($this->context && $this->context->hasOption('channel')) { |
65 |
|
$importedRecord['store:channel:id'] = $this->context->getOption('channel'); |
66 |
|
$importedRecord['customer:channel:id'] = $this->context->getOption('channel'); |
67 |
|
$importedRecord['cart:channel:id'] = $this->context->getOption('channel'); |
68 |
|
} |
69 |
|
|
70 |
|
$importedRecord = parent::convertToImportFormat($importedRecord, $skipNullValues); |
71 |
|
$importedRecord = AttributesConverterHelper::addUnknownAttributes($importedRecord, $this->context); |
src/OroCRM/Bundle/MagentoBundle/ImportExport/Converter/GuestCustomerDataConverter.php 1 location
|
@@ 48-52 (lines=5) @@
|
45 |
|
*/ |
46 |
|
public function convertToImportFormat(array $importedRecord, $skipNullValues = true) |
47 |
|
{ |
48 |
|
if ($this->context && $this->context->hasOption('channel')) { |
49 |
|
$importedRecord['store:channel:id'] = $this->context->getOption('channel'); |
50 |
|
$importedRecord['website:channel:id'] = $this->context->getOption('channel'); |
51 |
|
$importedRecord['group:channel:id'] = $this->context->getOption('channel'); |
52 |
|
} |
53 |
|
|
54 |
|
// extract view from 'website\nstore\view' string |
55 |
|
if (!empty($importedRecord['storeName'])) { |