src/Oro/Bundle/MagentoBundle/ImportExport/Strategy/CartStrategy.php 1 location
|
@@ 51-63 (lines=13) @@
|
48 |
|
* |
49 |
|
* {@inheritdoc} |
50 |
|
*/ |
51 |
|
public function process($entity) |
52 |
|
{ |
53 |
|
if (!$this->isProcessingAllowed($entity)) { |
54 |
|
$this->appendDataToContext( |
55 |
|
CartWithExistingCustomerStrategy::CONTEXT_CART_POST_PROCESS, |
56 |
|
$this->context->getValue('itemData') |
57 |
|
); |
58 |
|
|
59 |
|
return null; |
60 |
|
} |
61 |
|
|
62 |
|
return parent::process($entity); |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* @param Cart $cart |
src/Oro/Bundle/MagentoBundle/ImportExport/Strategy/CartWithExistingCustomerStrategy.php 1 location
|
@@ 12-25 (lines=14) @@
|
9 |
|
/** |
10 |
|
* {@inheritdoc} |
11 |
|
*/ |
12 |
|
public function process($importingCart) |
13 |
|
{ |
14 |
|
if (!$this->hasContactInfo($importingCart)) { |
15 |
|
return null; |
16 |
|
} |
17 |
|
|
18 |
|
if (!$this->isProcessingAllowed($importingCart)) { |
19 |
|
$this->appendDataToContext(self::CONTEXT_CART_POST_PROCESS, $this->context->getValue('itemData')); |
20 |
|
|
21 |
|
return null; |
22 |
|
} |
23 |
|
|
24 |
|
return parent::process($importingCart); |
25 |
|
} |
26 |
|
} |
27 |
|
|
src/Oro/Bundle/MagentoBundle/ImportExport/Strategy/NewsletterSubscriberWithExistingCustomerStrategy.php 1 location
|
@@ 15-24 (lines=10) @@
|
12 |
|
/** |
13 |
|
* {@inheritdoc} |
14 |
|
*/ |
15 |
|
public function process($entity) |
16 |
|
{ |
17 |
|
if (!$this->isProcessingAllowed($entity)) { |
18 |
|
$this->appendDataToContext(self::NEWSLETTER_SUBSCRIBER_POST_PROCESS, $this->context->getValue('itemData')); |
19 |
|
|
20 |
|
return null; |
21 |
|
} |
22 |
|
|
23 |
|
return parent::process($entity); |
24 |
|
} |
25 |
|
|
26 |
|
/** |
27 |
|
* @param NewsletterSubscriber $newsletterSubscriber |
src/Oro/Bundle/MagentoBundle/ImportExport/Strategy/OrderWithExistingCustomerStrategy.php 1 location
|
@@ 21-30 (lines=10) @@
|
18 |
|
* |
19 |
|
* {@inheritdoc} |
20 |
|
*/ |
21 |
|
public function process($importingOrder) |
22 |
|
{ |
23 |
|
if (!$this->isProcessingAllowed($importingOrder)) { |
24 |
|
$this->appendDataToContext(self::CONTEXT_ORDER_POST_PROCESS, $this->context->getValue('itemData')); |
25 |
|
|
26 |
|
return null; |
27 |
|
} |
28 |
|
|
29 |
|
return parent::process($importingOrder); |
30 |
|
} |
31 |
|
|
32 |
|
/** |
33 |
|
* @param Order $order |