pandorrah Posted September 29, 2016 Share Posted September 29, 2016 Hi, i'm using PS 1.6.1.7 and when i'm testing my webshop, if i add one item in my basket, the price amount displays correctly. If i add 2 or more than 2, the pricing displays: NaN,00. However, when i go to payment, the amount displays correctly. I've found out that NaN points to the whole ecotax system, which i don't use. Can anyone advice on this? Thank you kindly. Link to comment Share on other sites More sharing options...
shokinro Posted September 29, 2016 Share Posted September 29, 2016 you can disable eco tax at back office - Localization - Taxes tab, go bottom of the page you will see ECO tax option, you can disable it to see if it will fix your issue. Link to comment Share on other sites More sharing options...
pandorrah Posted September 29, 2016 Author Share Posted September 29, 2016 Hi shokinro, problem is that this function already is disabled. I still get the NaN,00 prices in FO. Link to comment Share on other sites More sharing options...
musicmaster Posted September 29, 2016 Share Posted September 29, 2016 This is likely a javascript error. It would help if you could disclose the actual url of the shop. 1 Link to comment Share on other sites More sharing options...
pandorrah Posted September 29, 2016 Author Share Posted September 29, 2016 Hi musicmaster, thank you for the offered help; i'll gladly accept it.The url is: http://www.pandorrah.nl/comicsThanks in advance. Link to comment Share on other sites More sharing options...
musicmaster Posted September 29, 2016 Share Posted September 29, 2016 No javascript error. And specific for the product page. Probably an error in product.js. My advice is to consult the supplier of your theme. It looks like they made an error. BTW: the page you linked to had all zero prices. Link to comment Share on other sites More sharing options...
pandorrah Posted September 30, 2016 Author Share Posted September 30, 2016 Er moet idd ergens een fout in de template zitten, ben er hard op aan het studeren.... Link to comment Share on other sites More sharing options...
pandorrah Posted October 1, 2016 Author Share Posted October 1, 2016 (edited) I worked around the problem and have solved it like this: i overwrote the entire product.tpl with one from the default template. From there i changed the looks in global.css and corrected text with the nl.php (language) file. When working with other templates, i discovered other programming, not standard to default PS. This 'mixing' of codes will introduce the NaN (Not A Number) error. Edited October 1, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted October 1, 2016 Share Posted October 1, 2016 Happy you solve the problem. In my experience it usually comes from not casting the content of html form fields as integer or float in javascript (with parseInt, parseFloat or other means). 1 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