Jump to content

warning displaying shopping carts


ps2k11

Recommended Posts

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

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

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...