Frenchy Posted May 16, 2018 Share Posted May 16, 2018 Hello everyone, I want to overrite the ProductController.php According the doc : http://doc.prestashop.com/display/PS16/Controllers+within+PrestaShop#ControllerswithinPrestaShop-Overridingacontroller I'm created the ProductController.php in override/controllers/front/ class ProductController extends ProductControllerCore { /** * Assign template vars related to page content. * * @see FrontController::initContent() */ public function initContent() { //some code } } When i'm tested this code, the behavior has not changed... Please, help me Link to comment Share on other sites More sharing options...
phinq1910 Posted May 17, 2018 Share Posted May 17, 2018 (edited) Did you clear cache? Also, try with syntax: public static function priceCalculation(...) { $price = parent::priceCalculation(...); // do something return self::$_prices[$cache_id]; } Edited May 17, 2018 by phinq1910 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now