Jump to content

Undefined class constant 'ROUND_TOTAL'


Recommended Posts

  • 1 month later...
  • 1 month later...

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 by Planownia (see edit history)
Link to comment
Share on other sites

  • 6 months later...

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

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 1

at 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

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...