Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Problem with eval() function
10-25-2010, 07:58 AM #1
- Join Date
- Oct 2010
- Thanked 0 Times in 0 Posts
Problem with eval() function
I have an ecommerce site based in WordPress. Im having a small problem with the js.
Problem - When you have a number of items in the cart, and you click the change currency button, ( any of the options, pounds, dollars or euros)
the js returns an error when trying to update the prices in the cart. This happens in FireFox and IE8, but in FF it carries on running regardless of the error, IE8.
I did some de bugging and this is where the error is occurring.
line 336 "eval(returndata);"
This is whats is being evaluated and outputted.
product_id = 8; price = "$100"; numeric_price = "100";
If anyone can give me some advice as to how to correct this it would be much appreciated.
PS i have tried removing the currency symbol that gets added in, it still bring back the error.
Last edited by krugazul; 10-25-2010 at 08:01 AM. Reason: Adding quotes to the code section