Announcement

Collapse
No announcement yet.

Affiliate Program - Order Total NetquoteVar

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

    Affiliate Program - Order Total NetquoteVar

    Our affiliate program software requires the order details to be sent in the format 'amount=99.99&orderid=xxxx'.

    We had been using FormattedOrderTotalHTML by mistake and this doesn't work because the currency symbol is included.

    It would seem that NumericOrderTotalCGI is the one we need, but I have spotted a potential problem. We display prices in our shop in two currencies, UK Pounds and US Dollars, and FormattedOrderTotalHTML returned both prices separated by a slash.
    If NumericOrderTotalCGI also returns both prices, then it won't work either (I can't check this at the moment as we are unable to go to the final receipt page on our site without going through NetBanx).

    So, is it possible to get the order value returned in UK Pounds only, while still displaying both prices in the catalogue.

    Thanks

    Derek Weir
    Seamanship International

    #2
    I think you have already got an answer for this one, but here is the Perl fix for this for the benefit of everyone.

    OrderScript.pl

    Search for 'NUMERICORDERTOTALCGI'

    You should see...

    $::s_VariableTable{$::VARPREFIX.'NUMERICORDERTOTALCGI'} =
    ACTINIC::EncodeText2($Response[2]);

    Five lines above you should see...

    @Response = ActinicOrder::FormatPrice($nTotal, $::FALSE,
    $::g_pCatalogBlob);

    Change this to...

    @Response = ActinicOrder::FormatSinglePrice($nTotal, $::FALSE,
    $::g_pCatalogBlob);

    This will display the Catalog currency only.

    Comment

    Working...
    X