miff Posted November 6, 2012 Share Posted November 6, 2012 (edited) Hi, When override CartController->preProcess() and add product to a cart, call preProcess original, then call same method in override controller and result is add 2 product. How to solve this? Version is 1.4.8.3 Thanks Edited November 6, 2012 by miff (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 6, 2012 Share Posted November 6, 2012 Hi, Try to merge the logic from override/CartController.php so that the preProcess() function can call FrontController::preProcess(). Thus $cart->add() will not be done twice. Regards Link to comment Share on other sites More sharing options...
miff Posted November 6, 2012 Author Share Posted November 6, 2012 Thanks Alexander, help me a lot. Front have method preProcess and this is a "problem" ... Solution is simple: in override, CartController->preProcess() comment/kill/delete line parent::preProcess(); at beginning of method. 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