Hi,
Can anyone tell me how to use javascript to display an amount that needs to be spent before delivery is free? For example, I offer free delivery over £25 and want to say something like "Spend £8.37 More for free delivery!".
var freedelivery = 25 - getCartItem(1);
I then use freedelivery in my javascript but I get NaN coming up instead of the actual amount. Where am I going wrong?
Thanks,
Paul.
Can anyone tell me how to use javascript to display an amount that needs to be spent before delivery is free? For example, I offer free delivery over £25 and want to say something like "Spend £8.37 More for free delivery!".
var freedelivery = 25 - getCartItem(1);
I then use freedelivery in my javascript but I get NaN coming up instead of the actual amount. Where am I going wrong?
Thanks,
Paul.
Comment