Amazzing Posted October 18, 2013 Share Posted October 18, 2013 (edited) Hello, I just came up with a strange overrides performance, or bug. Dont' know, what is this yet. Here is what I have: First of all, I have an override for Cart.php override/classes/Cart.php in this overrinde, I am updating getOrderTotal (...) function. I have added some cookie values to determine whether checkbox was checked or not. $context = Context::getContext(); if (Tools::getValue('ens') == 1) { $context->cookie->ens = Tools::getValue('ensval'); } elseif (Tools::getValue('ens') == 2 ){ $context->cookie->ens = 0; } It works just fine. Cookie value is saved and visible on any page. But this cookie value is not saved at all if I create an override for OrderController. This happens, even if there is nothing overriden in OrderController: (I am overriding it to /override/controllers/front/OrderController.php) <?php class OrderController extends OrderControllerCore { } ?> As soon as I delete OrderController override or rename it, cookies are working fine again. So, how does overriding OrderController affect cookies? Edited October 18, 2013 by Amazzing (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