Let's use this code:
- Code: Select all
if ( isNaN(fTax) ) alert( 'fTax is Not A Number' );
if ( isNaN(fShipping) ) alert( 'fShipping is Not A Number' );
if ( isNaN(fTotal) ) alert( 'fTotal is Not A Number' );
You can stick it anywhere you want to see what is happening with the variables in the function causing the problem. In this case checkoutCart.
I would place it just before the shipping row in the table totals, line 823 in the original nopcart.js file.
This will tell which variable is causing you grief.
If it is the tax variable, fTax, move the code up to line 738 this will determine if your tax is being properly parsed out of the URL.
If it is the shipping variable, put it in line 773.
All this will really do is isolate the variable causing the problem, and where the error is getting in...narrowing down the search more or less!
If you put the code in more than one place at a time, label the alert box with the line number.
You can always post the URL again so others can take a peek...