create('Smartwave\Dailydeals\Helper\Data')->chkEnableDailydeals(); if ($enable) { if ($template == 'Magento_Catalog::product/price/final_price.phtml') { return ['Smartwave_Dailydeals::product/price/final_price.phtml']; } else { return [$template]; } } else { return[$template]; } } }