QuickBooksSupport Posted February 21, 2008 Posted February 21, 2008 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!
hari_shyam Posted February 21, 2008 Posted February 21, 2008 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
QuickBooksSupport Posted February 21, 2008 Author Posted February 21, 2008 Fatal error: Call to undefined function: reset() in /home/content/q/b/i/qbinet/html/osCommerce/checkout_process.php on line 275 on $cart->reset(true);
QuickBooksSupport Posted February 21, 2008 Author Posted February 21, 2008 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.
QuickBooksSupport Posted February 21, 2008 Author Posted February 21, 2008 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!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.