Announcement

Collapse
No announcement yet.

Referrer script

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

    Referrer script

    I am making use of the Referrer Perl Script to track affiliate sites who generate sales from links we provide. I have this working successfully & any orders generated from the link we give them are flagged with the appropriate referrer ID we assign thus:

    h-ttp://www.eurocardplayer.net/cgi-bin/rs000001.pl?SOURCE=GamingCorp&DESTINATION=DVD%5fBooks%2ehtml&PATH=%2e%2e%2facatalog%2f&BASEURL=http%3a%2f%2fwww%2eeurocardplayer%2enet%2facatalog%2f

    The order is then flagged with the referrer ID when retrieving the order & shows in the 'Misc' tab of the order manager:

    Referrer:
    GamingCorp

    Is there a method of adding this variable to the email template that is used to send out order received/shipped confirmation along with:

    Order Number: JYGT000002257
    Shipping Method: Second Class Post FREE!

    etc ?

    Hope that makes sense!

    Thanks ...

    #2
    Hi,

    have a look in page 73 of the AUG v7 downloadable here . It has Adding Extra Fields into the Customer Email: General Information fields.

    The referrer uses 'User Definable 3' so you can use this

    Here is the cut down version for just 'User Definable 3'

    ------------------------------------------8<------------------------------
    Edit OrderScript.pl in 'Notepad'.

    Search for 'CUSTOMER_NAME' you will see...

    $ACTINIC::B2B->SetXML('CUSTOMER_NAME',$sName);

    After this line, insert the following...
    #
    # GeneralInfo
    #
    $ACTINIC::B2B->SetXML('GENUSERDEF', $::g_GeneralInfo{'USERDEFINED'});

    Next, search for 'Build the receipt'. You will see...

    ################
    # Build the receipt
    ################

    After this, insert the following...
    #
    # GeneralInfo
    #
    $::s_VariableTable{$::VARPREFIX.'GENUSERDEF'} =
    $::g_GeneralInfo{'USERDEFINED'};

    Save and exit.
    You will now be able to use the following tags in the customer email
    template: 'Act_CustomerEmail.txt':
    <Actinic:GENUSERDEF/>
    ------------------------------------------8<------------------------------

    That should put the referrer information on the reciept page as 'User
    Definable 3'.

    Hope this helps,

    Kind regards,
    Bruce King
    SellerDeck

    Comment

    Working...
    X