Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2010
    Posts
    20
    Plugin Contributions
    0

    Default Help needed adding to welcome email text

    I'm trying to add Facebook and Twitter links to my welcome email but I've been trying for a while now and I don't seem to be able to get the code correct as each time I try and add it the preview in the admin pages stops working.

    The current code is this;

    PHP Code:
    define('EMAIL_CONTACT''For help with any of our online services, please email the store-owner: <a href="mailto:' STORE_OWNER_EMAIL_ADDRESS '">'STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");
    define('EMAIL_GV_CLOSURE'"\n" 'Sincerely,' "\n\n" STORE_OWNER "\nStore Owner\n\n"'<a href="' HTTP_SERVER DIR_WS_CATALOG '">'.HTTP_SERVER DIR_WS_CATALOG ."</a>\n\n"); 
    I'd like to add a new line beneath the one that says "store owner" saying "Please visit our <a href="http://www.facebook.com/GardenSeedsUK">Facebook</a> and <a href="http://twitter.com/Garden_Seeds_UK">Twitter</a> pages for all the latest offers, news and product updates" with clickable links as shown.

    Thanks for any help in advance.

  2. #2
    Join Date
    Jul 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Help needed adding to welcome email text

    If there's an easier way to do this that still reads okay I'm open to suggestions. Would quite like to add the same to other automated emails.

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

    Default Re: Help needed adding to welcome email text

    Just add the appropriate html to the end of the EMAIL_GV_CLOSURE define.
    .

    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.

  4. #4
    Join Date
    Jul 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Help needed adding to welcome email text

    Quote Originally Posted by DrByte View Post
    Just add the appropriate html to the end of the EMAIL_GV_CLOSURE define.
    Okay, so I changed the code to the following;

    PHP Code:
    define('EMAIL_CONTACT''For help with any of our online services, please email the store-owner: <a href="mailto:' STORE_OWNER_EMAIL_ADDRESS '">'STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");
    define('EMAIL_GV_CLOSURE'"\n" 'Sincerely,' "\n\n" STORE_OWNER "\nStore Owner\n\n"'<a href="' HTTP_SERVER DIR_WS_CATALOG '">'.HTTP_SERVER DIR_WS_CATALOG ."</a>\n\n");
    Please visit our <a href="http://www.facebook.com/GardenSeedsUK">Facebook</a> and <a href="http://twitter.com/Garden_Seeds_UK">Twitter</apages for all the latest offersnews and product updates 
    And like before this stopped the preview loading on the admin page so clearly isn't right.

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

    Default Re: Help needed adding to welcome email text

    You need to include it inside the define().

    Syntax is: define('CONSTANT_NAME', 'value');

    So, since you're wanting to add more text to the "value" part, you need to include it there ... before the closing quotes and bracket and semicolon.
    .

    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.

  6. #6
    Join Date
    Jul 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Help needed adding to welcome email text

    Thanks for trying to help but still no luck.

    Here's the code I tried.

    PHP Code:
    define('EMAIL_GV_CLOSURE'"\n" 'Sincerely,' "\n\n" STORE_OWNER "\nStore Owner\n\n"'<a href="' HTTP_SERVER DIR_WS_CATALOG '">'.HTTP_SERVER DIR_WS_CATALOG "</a>\n\n Please visit our <a href="http://www.facebook.com/GardenSeedsUK">Facebook</a> and <a href="http://twitter.com/Garden_Seeds_UK">Twitter</a> pages for all the latest offers, news and product updates"); 
    Again, it wouldn't load the preview through the zen cart admin.

    What have I done wrong?

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

    Default Re: Help needed adding to welcome email text

    You'll notice that by using double-quotes you've caused it to have mismatched quotation marks.

    Try using single-quotes around your added content instead:
    PHP Code:
    define('EMAIL_GV_CLOSURE'"\n" 'Sincerely,' "\n\n" STORE_OWNER "\nStore Owner\n\n"'<a href="' HTTP_SERVER DIR_WS_CATALOG '">'.HTTP_SERVER DIR_WS_CATALOG "</a>\n\n" ' Please visit our <a href="http://www.facebook.com/GardenSeedsUK">Facebook</a> and <a href="http://twitter.com/Garden_Seeds_UK">Twitter</a> pages for all the latest offers, news and product updates'); 
    .

    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.

  8. #8
    Join Date
    Jul 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Help needed adding to welcome email text

    Excellent! Thank you so much DrByte, that worked perfectly.

  9. #9
    Join Date
    Sep 2012
    Posts
    40
    Plugin Contributions
    0

    red flag Re: Help needed adding to welcome email text

    Quote Originally Posted by Mule View Post
    Excellent! Thank you so much DrByte, that worked perfectly.
    Hello, please could you copy/paste the exact text you used for this FB/Twitter link?

    Mine doesnt seem to work, even though i followed the above thread :-/

 

 

Similar Threads

  1. Help Adding Customer details to create account welcome email
    By Juddsta in forum General Questions
    Replies: 2
    Last Post: 16 Mar 2011, 06:53 AM
  2. Help needed - welcome email edit
    By sgallasch in forum General Questions
    Replies: 12
    Last Post: 28 Aug 2008, 02:27 AM
  3. Welcome eMail - Adding Hyperlinks
    By Stuff4Toys in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2007, 10:41 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