webbit Posted November 14, 2013 Share Posted November 14, 2013 Hi I am using Prestashop Version: 1.4.8.2 My issue is after adding items to my cart, I then go to my cart summary and change the quantities The quantity changes but the price dose not reflect the change Please see attached image Any help would be much appreciated, Cheers ! Link to comment Share on other sites More sharing options...
NemoPS Posted November 15, 2013 Share Posted November 15, 2013 Can you link the website? There might be an error in the template. Also, are you using the ajax cart? Link to comment Share on other sites More sharing options...
webbit Posted November 15, 2013 Author Share Posted November 15, 2013 Hey Nemo1 My site is at http://www.karlamareeclothing.com.au The ajax cart is set to active in the cart block, is that my problem? It was set as active by default I did not change this setting after install Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted November 15, 2013 Share Posted November 15, 2013 I can't see the site as it's under maintenance. Try and check if you have any red mark in the bottom of the console window (hit f12 on chrome or firefox) when you change the quantity. If you have, click it to get more info about the error Link to comment Share on other sites More sharing options...
webbit Posted November 15, 2013 Author Share Posted November 15, 2013 the site should be live I can see it http://www.karlamareeclothing.com.au/en/ Ok I found the following, which doesnt mean anything to me 2Uncaught TypeError: Object #<error> has no method 'toFixed' 191534871564a8d466ad8f98d4f2de54.js:98 Uncaught TypeError: Object #<error> has no method 'toFixed' Link to comment Share on other sites More sharing options...
vekia Posted November 16, 2013 Share Posted November 16, 2013 turn off CCC for js files because your js files are minified now it's almost impossible to say what's goin on there, because code is unreadable Link to comment Share on other sites More sharing options...
webbit Posted November 17, 2013 Author Share Posted November 17, 2013 Hi Vekia I took your advise and I turned off CCC for js files. However the issue still remains but I noticed it does work if I add 5 or more as the quantity I hit F12 looking for errors and found the following if that is any help Uncaught TypeError: Object #<error> has no method 'toFixed' tools.js:60 // if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class) blank = ''; price = parseFloat(price.toFixed(6)); price = ps_round(price, priceDisplayPrecision); if (currencyBlank > 0) blank = ' '; thanks Link to comment Share on other sites More sharing options...
vekia Posted November 18, 2013 Share Posted November 18, 2013 sadly, i can't inspect it now Link to comment Share on other sites More sharing options...
webbit Posted November 18, 2013 Author Share Posted November 18, 2013 Sorry Vekia I have disabled geolocation preferences, are you able to view it now? Link to comment Share on other sites More sharing options...
NemoPS Posted November 18, 2013 Share Posted November 18, 2013 It seems that the price variable is bad, for some reason. On that file, before the line of the error, can you write console.log(price) ? Link to comment Share on other sites More sharing options...
Recommended Posts