ps2k11 Posted August 21, 2018 Share Posted August 21, 2018 getting this message when displaying shopping carts in backoffice any idea ? Warning on line 187 in file /home/public_html/override/classes/Cart.php [2] Declaration of Cart::getCartRules($filter = CartRule::FILTER_ACTION_ALL) should be compatible with CartCore::getCartRules($filter = CartRule::FILTER_ACTION_ALL, $autoAdd = true) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 23, 2018 Share Posted August 23, 2018 Hi, Add the 2nd parameter in the override cart class. The function should have the exact number of parameters so this line function i.e. getCartRules in your override cart class should be function getCartRules($filter = CartRule::FILTER_ACTION_ALL, $autoAdd = true) { } I believe currently you are passing only one variable in the getCartRules definition. Link to comment Share on other sites More sharing options...
Yoan Consultin Web Posted September 19, 2018 Share Posted September 19, 2018 Thanks for this information.... My problem is resolve ;-) Link to comment Share on other sites More sharing options...
El Patron Posted September 20, 2018 Share Posted September 20, 2018 Hi, if you disable debug mode, does cart have an issue? a warning/notice does not cause php script to stop running, so if it's not broke don't fix it. so if you are not actively trying to solve problem then turn off debug. hope that helps 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