protected function mapDirectiveSalePriceEffectiveDate($params = array()) { if ($this->getGenerator()->getConfig()->isSimplePricingEnabled($this->getGenerator()->getStoreId())) { //if simple pricing is on, we need to take the dates from the same product we used to take the price $priceSource = $this->getPriceSourceMap(); if (!empty($priceSource)) { return $priceSource->mapDirectiveSalePriceEffectiveDate($params); } } else { return parent::mapDirectiveSalePriceEffectiveDate($params); } }