コード例 #1
0
 protected function applySellingFormatTemplateModifications($value)
 {
     if ($this->getIsMagentoMode()) {
         return $value;
     }
     return parent::applySellingFormatTemplateModifications($value);
 }
コード例 #2
0
 protected function getOptionBaseValue(\Ess\M2ePro\Model\Listing\Product\Variation\Option $option)
 {
     if (!$option->getMagentoProduct()->isStatusEnabled() || !$option->getMagentoProduct()->isStockAvailability()) {
         return 0;
     }
     if ($this->getSource('mode') == \Ess\M2ePro\Model\Template\SellingFormat::QTY_MODE_PRODUCT) {
         if (!$this->getMagentoProduct()->isStatusEnabled() || !$this->getMagentoProduct()->isStockAvailability()) {
             return 0;
         }
     }
     return parent::getOptionBaseValue($option);
 }