bpenther Posted June 9, 2013 Share Posted June 9, 2013 Hi, I have recently installed Prestashop version 1.5.4.1 and am in the process of configuring it. When I try and put through a test sale it is allowing me to add products to the cart, but when I click on the cart I get a "Fatal Error". I have enabled error reporting and the first warning that comes up is: Notice: Use of undefined constant _PS_COUNTRY_DEFAULT_ - assumed '_PS_COUNTRY_DEFAULT_' in /var/www/clients/client10/web33/web/override/classes/Cart.php on line 27 I have been in the back office and selected different default countries, but I keep getting the same error. Could anyone help me? Thanks, Ben Link to comment Share on other sites More sharing options...
El Patron Posted June 9, 2013 Share Posted June 9, 2013 Notice: Use of undefined constant _PS_COUNTRY_DEFAULT_ - assumed '_PS_COUNTRY_DEFAULT_' in /var/www/clients/client10/web33/web/override/classes/Cart.php on line 27 Hi Ben, This is a 'notice' and would is not associated to the fatal error. You could fix this notice by changing the file in override/classes/Cart.php and enclose _PS_COUNTRY_DEFAULT_ in tick marks '_PS_COUNTRY_DEFAULT_'. That being said, a native 1.5.4.1 would not contain an override class. Cart.php Did you install a custom cart module? Look at the file and see if you can determine where it came from. You could also try this, rename the file in the overrride/classes/Cart.php to _Cart.php and test your site. Link to comment Share on other sites More sharing options...
bpenther Posted June 9, 2013 Author Share Posted June 9, 2013 Thanks. I did install a module called Freelivery to customise the free delivery settings. I modified _PS_COUNTRY_DEFAULT_ to '_PS_COUNTRY_DEFAULT_' in overrride/classes/Cart.php and now it works fine. Thanks very much Ben Link to comment Share on other sites More sharing options...
El Patron Posted June 9, 2013 Share Posted June 9, 2013 Thanks. I did install a module called Freelivery to customise the free delivery settings. I modified _PS_COUNTRY_DEFAULT_ to '_PS_COUNTRY_DEFAULT_' in overrride/classes/Cart.php and now it works fine. Thanks very much Ben Hi Ben, So all is working now? If so I will set this to solved. Cheers, Fred Link to comment Share on other sites More sharing options...
bpenther Posted June 9, 2013 Author Share Posted June 9, 2013 Yes. Thanks very much 1 Link to comment Share on other sites More sharing options...
Recommended Posts