private function prepareConfigurator(\Ess\M2ePro\Model\Listing\Product $listingProduct, \Ess\M2ePro\Model\Ebay\Listing\Product\Action\Configurator $configurator, $action) { if ($action != \Ess\M2ePro\Model\Listing\Product::ACTION_RELIST) { $configurator->setParams(array('replaced_action' => \Ess\M2ePro\Model\Listing\Product::ACTION_RELIST)); } /** @var \Ess\M2ePro\Model\Ebay\Listing\Product $ebayListingProduct */ $ebayListingProduct = $listingProduct->getChildObject(); if (!$ebayListingProduct->getEbaySynchronizationTemplate()->isRelistSendData()) { $configurator->setPartialMode(); $configurator->allowQty()->allowPrice()->allowVariations(); } }
private function prepareConfigurator(\Ess\M2ePro\Model\Listing\Product $listingProduct, \Ess\M2ePro\Model\Ebay\Listing\Product\Action\Configurator $configurator, $action) { if ($action != \Ess\M2ePro\Model\Listing\Product::ACTION_STOP) { $configurator->setParams(array('replaced_action' => \Ess\M2ePro\Model\Listing\Product::ACTION_STOP)); } /** @var \Ess\M2ePro\Model\Ebay\Listing\Product $ebayListingProduct */ $ebayListingProduct = $listingProduct->getChildObject(); if (!$ebayListingProduct->isOutOfStockControlEnabled() && $action == \Ess\M2ePro\Model\Listing\Product::ACTION_STOP) { return; } $configurator->setPartialMode(); $configurator->allowQty()->allowVariations(); }