Announcement

Collapse
No announcement yet.

How can I add the general questions in the checkout to the customer email?

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

    How can I add the general questions in the checkout to the customer email?

    This technique will allow you to put the customer's answer to the question you ask with the 'How did you find our site?', 'What was your reason for buying' and 'User Definable 3' questions into the receipt email that is sent to the customer. These prompts can be edited in 'Design | Text | Web Site (cont) | General Information'.

    Please note that this technique will require you to edit the Perl scripts that are used to run the online checkout. Actinic cannot provide support for any programming changes made. If it goes wrong, please revert back to the original 'OrderScript.pl' script, which is found in your 'Original' directory.

    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('HOWFOUND', $::g_GeneralInfo{'HOWFOUND'});
    $ACTINIC::B2B->SetXML('WHYBUY', $::g_GeneralInfo{'WHYBUY'});
    $ACTINIC::B2B->SetXML('GENUSERDEF', $::g_GeneralInfo{'USERDEFINED'});

    Save and exit.

    You will now be able to use the following tags in the 'Customer Email' layout (available in the 'Select Page Type' drop down list in the 'Design' tab) and/or the 'Buyer Email' for customer accounts:

    <Actinic:HOWFOUND/>

    <Actinic:WHYBUY/>

    <Actinic:GENUSERDEF/>

    These variables can also be added to the 'Receipt' page layout to display the values on the online receipt page.
Working...
X