Announcement

Collapse
No announcement yet.

Javascript Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Javascript Problem

    I want to use Javascript to display how much discount we give to our customers per product.

    Retail Price is stored in NETQUOTEVAR:PRICETEXT

    Shop Price is NETQUOTEVAR:COST

    This works fine on the Product pages but throws a script error on the checkout pages after adding to trolley.

    The error I get is ") expected at Line 123"

    I am using the following code:

    <script blah blah blah>

    functionname(NETQUOTEVAR:COST,NETQUOTEVAR:PRICETEXT)

    </script>

    functionname processes and formats the variables and returns the appropriate answer.

    This all works fine on product pages so I know the problem isn't with the script. It only stops working in checkout pages.

    The error occurs at the last bracket in the function call.

    Any ideas? Norman?

    Thanks.
    Tim Brown

    #2
    In http://community.actinic.com/showthr...&threadid=5299 Norman mentions how the latest version of Netscape gives much better error reporting than IE. It may help you to pinpoint where the problem is.

    Comment


      #3
      And it won't hurt your existing system to have Netscape on it.

      Indeed it's worth testing your store on Netscape just so you know it works for the brave few non-microsofties out there.

      Norman

      p.s. You could try

      functionname('NETQUOTEVAR:COST','NETQUOTEVAR:PRICETEXT')

      as non defined netquotevars would at least create empty strings rather than missing parameters.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X