PDA

View Full Version : Affiliate code for dual currency catalog


kenzgbr
28-Jan-2004, 09:22 PM
Hi,

I'm implementing an affiliate tracking link in Act_Order04 template, but have noticed that when dual currency is 'on' (ie prices displaying in £ sterling and $) the variable NUMERICORDERTOTALCGI I'd normally use in the AMOUNT field contains a format which includes both the base and secondary currencies, eg. £1.50/$2.00 .

Can anyone suggest a way I can display what amounts to ACTINICORDERTOTAL / 100 to pass the amount in base currency only, including decimal points in the right places etc? I'm wary of b*ggering up scripts without meaning to - it has happened before!

Many thanks

Keith

cdicken
30-Jan-2004, 08:34 AM
So what you are looking for is a JavaScript function that will take the value of an Actinic variable (NETQUOTEVAR:ACTINICORDERTOTAL), divide it by 100 and then pass the value to an external application.

Hmmm.

I've had a go at doing this, but my JavaScript is not up to scratch. Does anyone else want to make a suggestion?