Example #1
0
 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->getEbaySellingFormatTemplate()->getOutOfStockControl() && $action == Ess_M2ePro_Model_Listing_Product::ACTION_STOP) {
         return;
     }
     $configurator->setPartialMode();
     $configurator->allowQty()->allowVariations();
 }
Example #2
0
 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()) {
         return;
     }
     if (!$listingProduct->isHidden() && $action == Ess_M2ePro_Model_Listing_Product::ACTION_RELIST) {
         $configurator->setEmptyMode();
         return;
     }
     $configurator->setPartialMode();
     $configurator->allowQty()->allowVariations();
 }