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.
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.
Comment