Announcement

Collapse
No announcement yet.

How can I change the subject line of the confirmation email?

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

    How can I change the subject line of the confirmation email?

    By default the subject line of the customer confirmation email is:

    Order Number: xxxxxxxxxxxxxx

    where 'xxxxxxxxxxxxxx' is the actual 14 character order number.

    To change the 'Order Number' text:

    * go to the 'Design' menu and select 'Text'
    * click on the 'Go To' button in the bottom left corner of the window
    * set the 'Phase' field to -1 and the 'ID' field to 234
    * click 'OK'
    * change the prompt in the 'Current Value' field
    * click 'OK'.

    To remove the actual order number from the subject line and just use what you enter in the above Text ID field:

    * browse to your site folder and locate 'OrderScript.pl' (take a backup)
    * open the file in a text editor such as notepad
    * search for:
    Code:
    ACTINIC::GetPhrase(-1, 234) . " $::g_InputHash{ORDERNUMBER}",
    * change the line to read:
    Code:
    ACTINIC::GetPhrase(-1, 234),
    * close and save the file
    * update your site.

    In v18 onward, the code: -
    Code:
    ACTINIC::GetPhrase(-1, 234) . " $::g_InputHash{ORDERNUMBER}",
    would read: -
    Code:
    print MFILE ACTINIC::GetPhrase(-1, 234) . " $sOrderNumber" . "\n"; # print the subject
    Therefore the replacement code should be: -
    Code:
    print MFILE ACTINIC::GetPhrase(-1, 234) . "\n"; # print the subject
    Additionally within the new version of the script, there are two instances of this, so scroll down the file to approximately line: 8890 assuming this is a default script and look for: -
    Code:
    ACTINIC::GetPhrase(-1, 234) . " $sOrderNumber" . $sSubjectSuffix,
    and replace this with: -
    Code:
    ACTINIC::GetPhrase(-1, 234) . $sSubjectSuffix,
    then save and close the file.

    To remove the order number from the content of the email, please go to 'Design | Library | Layouts' and scroll down to the 'Email Inner Layout' and expand it, opening the layout 'Customer HTML Email Inner Layout'.

    Locate the line: -
    HTML Code:
    <p>Order Number: OrderNumberOnlineXML
    and replace this with: -
    HTML Code:
    <!-- <p>Order Number: <actinic:variable name="OrderNumberOnlineXML"/> -->
    Then click 'OK' to close the layout.

    Once you have done this upload the site for the changes to appear online.


    SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this or the backup into your site folder.
    Last edited by G.W.Green; 15-Jan-2021, 02:10 PM.
Working...
X