Jump to content

Total price not updating with ajax on Cart summary Page


Recommended Posts

Hi,

 

I have one problem that I've been working on for hours and can't figure out how to solve it.

 

Here is the problem:

- the customer add a product to the cart

- then he goes to the cart summary page

 

when the customer change the number of one of the products in the list, ajax update everything except the total price.

 

Please see the attachment for reference.

My PS version is 1.4.8.2

 

and on opera i am getting this error

 

[5/22/1972 12:36:08 PM] JavaScript - https://www.example.com/store/order

Unknown thread

Uncaught exception: TypeError: 'price.toFixed' is not a function

Error thrown at line 98, column 10 in formatCurrency(price, currencyFormat, currencySign, currencyBlank) in https://www.example.com/store/themes/new/cache/34465a8563e87d390867d99c0d332c60.js:

price=parseFloat(price.toFixed(6));

called from line 300, column 1 in updateCartSummary(json) in https://www.example.com/store/themes/new/cache/34465a8563e87d390867d99c0d332c60.js:

$('#cart_block_shipping_cost').html(formatCurrency(json.total_shipping_tax_exc,currencyFormat,currencySign,currencyBlank));

called from line 235, column 0 in <anonymous function: success>(jsonData) in https://www.example.com/store/themes/new/cache/34465a8563e87d390867d99c0d332c60.js:

updateCartSummary(jsonData.summary);

called via Function.prototype.call() from line 7, column 20246 in <anonymous function: handleSuccess>(a, b, d, e) in https://www.example.com/store/themes/new/cache/34465a8563e87d390867d99c0d332c60.js:

a.success&&a.success.call(a.context,e,d,B);

called from line 7, column 17954 in <anonymous function: w.onreadystatechange>(m) in https://www.example.com/store/themes/new/cache/34465a8563e87d390867d99c0d332c60.js:

d||c.handleSuccess(b,w,e,f);

 

Please help

 

Thanks.

post-252331-0-66473600-1341012370_thumb.gif

Link to comment
Share on other sites

×
×
  • Create New...