Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function: reset()


QuickBooksSupport

Recommended Posts

Posted

I am making some mods that require changing the classes a little.

 

I frequently put in Die's to see what my variables are.

 

I am getting various Call to undefined function: reset() in Checkout_porcess

$cart->reset(true);

 

and also in Shopping_Cart Class

function remove_all() {

$this->reset();

 

I am assuming the the object $cart and $this are not set correctly

I guess that I just don't understand how to get the process

 

Can anyone shed some light on this?

 

Thanks a bunch!

Posted
I am making some mods that require changing the classes a little.

 

I frequently put in Die's to see what my variables are.

 

I am getting various Call to undefined function: reset() in Checkout_porcess

$cart->reset(true);

 

and also in Shopping_Cart Class

function remove_all() {

$this->reset();

 

I am assuming the the object $cart and $this are not set correctly

I guess that I just don't understand how to get the process

 

Can anyone shed some light on this?

 

Thanks a bunch!

 

Hey

 

can you put in the exact error you got and what you did in the first place to et that one ;).. It would hep us help you a lot..

 

Cheers

Hari

Posted

I also get

Fatal error: Call to undefined function: reset() in /home/content/q/b/i/qbinet/html/osCommerce/includes/classes/shopping_cart.php on line 19

 

$this->reset();

 

I am not even sure how to clear it to keep testing.

Posted

Now I am getting

Fatal error: Cannot redeclare reset() in /home/content/q/b/i/qbinet/html/osCommerce/includes/classes/shopping_cart.php on line 48

function reset($reset_database = false) {

 

 

I can't seem to get out of this.

 

HELP!!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...