sumitt2004 Posted March 20, 2013 Share Posted March 20, 2013 I want to display Carrier Transit time at product page and I changed Product.php from classes, ProductController.php from controller->front and product.tpl from theme. ProductConroller.php protected function assignCarrierDelay() { $carriers = Product::getProductCarrier($this->product->id,$this->context->language->id); //echo $carriers; $this->context->smarty->assign('carrier_delay', $carriers); } Product.php public function getProductCarrier($id_product,$id_lang) { return Db::getInstance()->getValue('SELECT cl.`delay` FROM `'._DB_PREFIX_.'carrier_lang` AS cl LEFT JOIN`'._DB_PREFIX_.'product_carrier` AS pc ON pc.`id_carrier_reference` = cl.`id_carrier` WHERE pc.`id_product` = '.(int)$id_product.' AND cl.`id_lang`='.(int)$id_lang); } Product.tpl {$carrier_delay} But nothing happened. Could someone please help me to get this? Link to comment Share on other sites More sharing options...
sumitt2004 Posted March 21, 2013 Author Share Posted March 21, 2013 Could someone please help me on this? Link to comment Share on other sites More sharing options...
sumitt2004 Posted March 21, 2013 Author Share Posted March 21, 2013 Is there no one who can help me on this?? Link to comment Share on other sites More sharing options...
divingclown Posted February 24, 2014 Share Posted February 24, 2014 @sumitt2004: did you find a solution to your problem by any chance? Link to comment Share on other sites More sharing options...
Recommended Posts