Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    20
    Plugin Contributions
    0

    Default Add Text and Link to Order Confimation

    I want to add text that contains a link on the order confirmation page. I found the file checkout_process but I am not sure if I can add html code in that page. I'd like to add a simple line like--Click here for our Return Policy. I tried to insert the html code for that but it just printed in plain text.

    Here's what I tried to add:

    define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
    define('EMAIL_TEXT_HEADER', 'Order Confirmation');
    define('EMAIL_TEXT_FROM',' from '); //added to the EMAIL_TEXT_HEADER, above on text-only emails
    define('EMAIL_THANKS_FOR_SHOPPING','Thanks for shopping with us today!');
    define('EMAIL_DETAILS_FOLLOW','<html>
    <head>
    </head>
    <body>
    <a
    href="http://qbstore.com/index.php?main_page=shippinginfo&amp;zenid=a7a4d41**obfuscated*08796543ea"
    target="_blank">Click here for our Return Policy</a>
    The following are the details of your order.
    </body>
    </html>
    ');
    define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
    define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
    define('EMAIL_TEXT_INVOICE_URL_CLICK', 'Click here for a Detailed Invoice');
    define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
    define('EMAIL_TEXT_PRODUCTS', 'Products');
    define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:');
    define('EMAIL_TEXT_TAX', 'Tax: ');
    define('EMAIL_TEXT_SHIPPING', 'Shipping: ');
    define('EMAIL_TEXT_TOTAL', 'Total: ');
    define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Delivery Address');
    define('EMAIL_TEXT_BILLING_ADDRESS', 'Billing Address');
    define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');
    Last edited by DrByte; 1 Aug 2007 at 08:28 PM. Reason: obfuscated the zenid

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Add Text and Link to Order Confimation

    1. NEVER include the zenid=xxxxxxxxxxxx in ANY link you post/email/share ..... EVER
    (Otherwise you run the risk of multiple customers hijacking others' sessions)

    2. If you have ANY customers receiving your emails in TEXT-only format, you probably should only supply the URL as a raw link, and not with the <a href> tags etc ... since text-only emails would show the raw html, making the link ugly and sometimes useless to them.

    3. Why are you including <html>, <head>, <body> tags in the middle of an email? HTML-formatted emails will already have those tags, so if you add them again, you will confuse the email client, and end up with odd display results.

    Why not just do this:
    Code:
    define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.' . "\n\n" . 'If there is a problem with your order, please see our return policy, which can be found at this link:  ' . "\n" . 'http://qbstore.com/index.php?main_page=shippinginfo');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. How to change Order Confimation message?
    By magic moon in forum General Questions
    Replies: 4
    Last Post: 19 Oct 2010, 02:59 AM
  2. How do I add text and link to my Login page? Suggestions Please!
    By medragon in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Apr 2009, 11:05 PM
  3. Faxed Order Confimation
    By marleyman in forum General Questions
    Replies: 0
    Last Post: 17 Jun 2008, 01:59 PM
  4. Order Totals and Confimation Emails?
    By MagicMan in forum General Questions
    Replies: 1
    Last Post: 1 Jan 2008, 06:00 PM
  5. Customize Order Confimation Email --- Please Help
    By ginc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Apr 2007, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg