protected function applySellingFormatTemplateModifications($value) { if ($this->getIsMagentoMode()) { return $value; } return parent::applySellingFormatTemplateModifications($value); }
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); }