Right peeps, further to this tracking cookies thingy..
They want a unique reference number and amount for every sale, the unique reference isn't a problem, but the tracker will only accept a numerical value for the amount, and our booking pages output the amount in the form "£199.99" as a nice big string..
Our booking pages are almost entirely javascript as well, which is.. umm.. fun..
Anyhoo, will the following strip off the £ character, leaving me with just the number?
Leaving me to input the [!str_cost] into the tracking code?Code:<script language="JavaScript"> var str_cost = "[!holiday_cost]"; str_cost = replace(str_cost, "£,"); </script>