Announcement

Collapse
No announcement yet.

Affiliate Integration Amount Before Postage

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

    Affiliate Integration Amount Before Postage

    Does anyone know the code to integrate with your affiliate program for the total cost of the order, minus the postage cost ??
    For Everyday Pet Products
    www.pet-bliss.com

    For Doggy Bling and Clothes
    www.poshpaws.ie

    #2
    Hi there

    I'm afraid Actinic cannot do this at the moment, Actinic does not store the postage cost in a variable, so doing this would be quite hard. All of our variables are either the order number or order totalled.

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      The NETQUOTEVAR:ACTINICORDERTOTAL gives the total pre-shipping cost in pence. We amended the order perl script to create another NQV of ACTINICORDERTOTAL divided by 100. We then use this NQV in Act_Order04.html to pass the pre-vat, pre-postage total to the affiliate scheme.
      Mike Julien

      www.wheesh.com

      Comment


        #4
        Hi Mike. Can you tell us what actual changes you made to the order perl script please? And also how you use it in Act_Order04.html?

        Any help would be much appreciated!
        Amin Motin
        First Choice Aquatics Ltd
        0870 8964698
        Offering a fine range of high quality branded aquarium and pond products

        Comment


          #5
          In orderscript.pl the relevant part now reads


          # send the total as an integer in the currency base unit
          # e.g. "512834"
          #
          $::s_VariableTable{$::VARPREFIX.'ACTINICORDERTOTAL'} = $nTotal;
          #
          # send the total as an integer in the currency base unit
          # e.g. "5128.34" as inserted by MDJ for affiliate tracking
          #
          $::s_VariableTable{$::VARPREFIX.'ACTINICORDERTOTAL100'} = $nSubTotal/100;
          #
          # send the total as a formatted string
          # e.g. "$5,128.34"


          You can then use the NETQUOTEVAR:ACTINICORDERTOTAL100 in Act_Order04
          Mike Julien

          www.wheesh.com

          Comment

          Working...
          X