Announcement

Collapse
No announcement yet.

Affiliate code for dual currency catalog

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

    Affiliate code for dual currency catalog

    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

    #2
    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?

    Comment

    Working...
    X