mulekula Posted December 2, 2012 Share Posted December 2, 2012 Hi all! I update my Prestashop to 1.5! And i have trouble whith news core module. I need to create controller that help me to get "off" some block on page /module/newscore/news.php i have create some but this one not work: <?php class NewscoreNewsModuleFrontController extends ModuleFrontController { public $display_column_left = false; public $ssl = true; /** * @see FrontController::initContent() */ public function initContent() { parent::initContent(); Tools::redirect('index.php?controller=news'); $this->context->smarty->assign(array( 'nbProducts' => $cart->nbProducts(), 'cust_currency' => $cart->id_currency, 'currencies' => $this->module->getCurrency((int)$cart->id_currency), 'total' => $cart->getOrderTotal(true, Cart::BOTH), 'isoCode' => $this->context->language->iso_code, 'chequeName' => $this->module->chequeName, 'chequeAddress' => Tools::nl2br($this->module->address), 'this_path' => $this->module->getPathUri(), 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/' )); $this->setTemplate('news-list.tpl'); } } ?> module: newscore.zip PS: sorry for my english, i from ukraine Link to comment Share on other sites More sharing options...
Recommended Posts