iFritz Posted January 26, 2015 Share Posted January 26, 2015 Hi Folks, after updating to 1.6.0.11 i get the following error on certain admin pages: Fatal error: Undefined class constant 'ROUND_TOTAL' in /classes/Cart.php on line 586 Any ideas how to solve this? Regards Link to comment Share on other sites More sharing options...
NemoPS Posted January 26, 2015 Share Posted January 26, 2015 Check classes/order/Order.php Make sure you have this right after the class declaration const ROUND_ITEM = 1; const ROUND_LINE = 2; const ROUND_TOTAL = 3; 1 Link to comment Share on other sites More sharing options...
iFritz Posted January 26, 2015 Author Share Posted January 26, 2015 Hi Nemo1, your hint fixed it. Thanks. My shop used the Order.php in override folder..... regards 1 Link to comment Share on other sites More sharing options...
Poppy381 Posted March 5, 2015 Share Posted March 5, 2015 Thank you Nemo, It was the same problem for me (override...) . Link to comment Share on other sites More sharing options...
Planownia Posted May 4, 2015 Share Posted May 4, 2015 (edited) i need help with buy option in http://projektowaniemiasta.pl/pl/ i have error when you push button ad to cart: Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: Unexpected token F'responseText:Fatal error: Undefined class constant 'ROUND_TOTAL' in /home/projmias/domains/projektowaniemiasta.pl/public_html/classes/Cart.php on line 586 I please help Edited May 4, 2015 by Planownia (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 6, 2015 Share Posted May 6, 2015 Classes/Order.php Add these constants if missing const ROUND_ITEM = 1; const ROUND_LINE = 2; const ROUND_TOTAL = 3; Link to comment Share on other sites More sharing options...
Kopy Posted November 17, 2015 Share Posted November 17, 2015 What to do when this is set as you wrote, but it doesn't change anything? Link to comment Share on other sites More sharing options...
NemoPS Posted November 18, 2015 Share Posted November 18, 2015 Are you sure you are having the same issue? Link to comment Share on other sites More sharing options...
Kopy Posted November 18, 2015 Share Posted November 18, 2015 I get this error message, but I think this is some error after upgrade with rounding. Because I cannot open order and customer carts on back-end. Tried cleaning all orders and then the error disappeared in there. But other errors on customer carts page remained. I also cannot open "Preferrence>General". Might it be, ths on my prestashop version 1.6.0.9 there were no third rounding option and not it is ? Link to comment Share on other sites More sharing options...
NemoPS Posted November 20, 2015 Share Posted November 20, 2015 But are you getting that round total issue? Or some other error? Link to comment Share on other sites More sharing options...
Kopy Posted November 20, 2015 Share Posted November 20, 2015 Not really sure. I have pasted errors that I get. I am not programmer, but it seams, that this error linked with with rounding option. 1) When I try to add product to cart I get this error:Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON Parse error: Unrecognized token '<''responseText:Fatal error: Undefined class constant 'ROUND_TOTAL' in /home/autoship/domains/iiiii.com/public_html/classes/Cart.php on line 702 2) When try to open Curstomers> Carts : Fatal error: Undefined class constant 'ROUND_TOTAL' in /home/autoship/domains/iiiii.com/public_html/classes/Cart.php on line 702 3) When I try to open Preference>General: Fatal error: Undefined class constant 'ROUND_ITEM' in /home/autoship/domains/iiiii.com/public_html/controllers/admin/AdminPreferencesController.php on line 161 4) And this is when I try to open invoice: Fatal error: Call to undefined method OrderInvoice::getCurrentFormattedShopAddress() in /home/autoship/domains/iiiii.com/public_html/classes/pdf/HTMLTemplateInvoice.php on line 51 5) When I try open oder on back-end: PrestaShopDatabaseException]Column 'id_product' in where clause is ambiguous SELECT image_shop.id_image FROM sk_image i INNER JOIN sk_image_shop image_shop ON (image_shop.id_image = i.id_image AND image_shop.id_shop = 1 AND image_shop.cover=1) WHERE id_product = 1399 LIMIT 1at line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) {787. $dbg = debug_backtrace();788. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {790. if ($sql) {791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');792. }793.794. throw new PrestaShopDatabaseException($this->getMsgError());795. }796. } Link to comment Share on other sites More sharing options...
NemoPS Posted November 21, 2015 Share Posted November 21, 2015 The shop is totally broken, I am afraid. I checked on the same version .09 and I see no such references at the lines you mentioned. Could you post the first one? Link to comment Share on other sites More sharing options...
Kopy Posted November 23, 2015 Share Posted November 23, 2015 Yeah...I see that. I made copy of my original shop just in case it will get broken What do you mean about first one ? Link to comment Share on other sites More sharing options...
NemoPS Posted November 25, 2015 Share Posted November 25, 2015 Cart.php on line 702 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