Announcement

Collapse
No announcement yet.

Referrer text string in customer email

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

    Referrer text string in customer email

    Hi

    I would if anyone could offer some advice please?

    I've been setting up the referrer perl script tonight, and was wondering if there's a way to modify the Act_CustomerEmail template so that the email sent to customers includes the referrer text string (i.e. from the advanced user guide - the text string to indicate where people have come from, given as 123 in the example)?

    Any adivce would be gratefully received thank you.

    Regards

    Ash W

    #2
    Hi Ash,

    This would require a script change within the orderscript.pl file. I have asked the development team if they could do this.

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      Hi Nadeem

      I appreciate you looking into whether it would be possible thanks.

      Kind Regards

      Ash

      Comment


        #4
        Hi Ash,

        Okay a bit tricky, but here is what you need to do:

        1. Open the OrderScript.pl in your site directory with notepad
        2. Find 'sub GenerateCustomerMail' subroutine
        3. Go a little further and find this line:

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

        4. Insert the following lines after it:

        #
        # Get the ACTINIC_SOURCE parameter
        #
        @Response = GetGeneralUD3();
        if ($Response[0] == $::SUCCESS)
        {
        $ACTINIC::B2B->SetXML('SOURCE',$Response[2]);
        }

        5. Save and close this file
        6. Open the Act_CustomerEmail.txt in your site dir with note
        7. Insert the title for this field and the following string where you want.

        It should be something like this:
        "Source : <Actinic:SOURCE/>" (without the speechmarks)

        8. Save and close this file also
        9. Upload your site
        So if the client comes to the site through a referrer, when they place an order, the referrer details can placed where <Actinic:SOURCE/> appears.

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          Hi Nadeem

          The instructions you posted earlier about how to add the referrer text string to the customer email work a treat, and are most appreciated thank you as this feature will be extremely useful for us.

          Kind Regards

          Ash

          Comment

          Working...
          X