Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts

    Angry 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";
    This gives me a "Object does not support this method or property"

    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


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts