/** * {@inheritdoc} */ public function process($importingCart) { if (!$this->hasContactInfo($importingCart)) { return null; } if (!$this->isProcessingAllowed($importingCart)) { $this->appendDataToContext(self::CONTEXT_CART_POST_PROCESS, $this->context->getValue('itemData')); return null; } return parent::process($importingCart); }
/** * {@inheritdoc} */ protected function getStrategy() { $strategy = new CartStrategy($this->eventDispatcher, $this->strategyHelper, $this->fieldHelper, $this->databaseHelper); $strategy->setOwnerHelper($this->defaultOwnerHelper); $strategy->setLogger($this->logger); $strategy->setChannelHelper($this->channelHelper); $strategy->setAddressHelper($this->addressHelper); return $strategy; }