Em dùng prestashop 1.6
cho em hỏi là: em tạo file PopularProductController.php trong C:\wamp\www\nemshop\htdocs\controllers\front\PopularProductController.php
<?php
class PopularProductControllerCore extends FrontController
{
public $php_self = 'popular-product';
public function setMedia()
{
//
}
public function init()
{
//
}
public function initContent()
{
//nội dung
$this->setTemplate(_PS_THEME_DIR_.'popularproduct.tpl');
}
}
rồi tạo C:\wamp\www\nemshop\htdocs\themes\vela_default\popularproduct.tpl nhưng khi chạy nó hiển thị ra thông báo lỗi này.
Fatal error: Class 'PopularProductController' not found in C:\wamp\www\nemshop\htdocs\classes\controller\Controller.php on line 135
Vậy lỗi này cần chỉnh làm sao?
Trong prestashop 1.6, mình tạo tabcateslider hiển thị sản phẩm của 3 mục Women,Dresses, Men.
Bây giờ, mình muốn tạo ra một page hiển thị sản phẩm của 3 mục đó rồi link tiêu đề: WEEKLY FEATURED đến trang đó.