Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2008
    Posts
    16
    Plugin Contributions
    0

    Default A simple question for PHP programmers

    I could use your help!

    I'm trying to customize the Welcome Email message. I read the FAQ on this at FAQ https://www.zen-cart.com/tutorials/index.php?article=20. I was surprised that the code has to be edited. While I know HTML, I don't know PHP.

    Here's where I'm stuck...

    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"); 
    I want to change the text to: 'For help with any of our services, contact us at [email protected]. We will respond within 24 hours to all inquiries.'

    I don't want to use the default store owner email address. I'm not sure how to modify this to that it has the customize text. I'm sure it's a simple thing. I just don't know how to do it.

    Thank you in advance for any assistance!

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

    Default Re: A simple question for PHP programmers

    Quote Originally Posted by HTMLGoddess View Post
    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"); 
    I want to change the text to: 'For help with any of our services, contact us at [email protected]. We will respond within 24 hours to all inquiries.'
    Quite simple really ... just replace the existing defined value with your new value:


    [FONT="Courier New"]define('EMAIL_CONTACT', 'For help with any of our services, contact us at [email protected]. We will respond within 24 hours to all inquiries.');[/FONT]

    If you want to add HTML markup to part of it, just add the HTML as you would normally ... keeping in mind that you're working inside a set of single-quotes, so you don't want to be using any single-quotes inside there or you'll end up with challenges.
    .

    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.

  3. #3
    Join Date
    Jul 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: A simple question for PHP programmers

    Dr. Byte, you rock! Thanks so much!!!

    Just out of curiousity, how would you include a word or phrase that has quotation marks?

    Chicken is "the other" beef.

    Is it okay to include quotation marks inside single marks?

    'Chiken is "the other" beef.'

    I'm learning :-)

  4. #4
    Join Date
    Jul 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: A simple question for PHP programmers

    Also what if you have a word with a single quote such as: We'd or I'm? Would you use a slash or ??

    Thanks!

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

    Default Re: A simple question for PHP programmers

    Quote Originally Posted by HTMLGoddess View Post
    Just out of curiousity, how would you include a word or phrase that has quotation marks?

    Chicken is "the other" beef.

    Is it okay to include quotation marks inside single marks?

    'Chiken is "the other" beef.'
    As long as your outer quotation marks are matched (ie: in pairs), you can use other kinds of punctuation inside them, including other kinds of quotation marks, whether balanced in pairs or not.

    Quote Originally Posted by HTMLGoddess View Post
    Also what if you have a word with a single quote such as: We'd or I'm? Would you use a slash or ??
    Yes, to use a ' inside a pair of ' marks, you'd use \'
    Likewise, to use a " inside a pair of " marks, you'd use \"
    That is commonly referred-to as "escaping"
    .

    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. v139h Simple PHP code question
    By DigitalShadow in forum General Questions
    Replies: 4
    Last Post: 26 Feb 2013, 08:13 PM
  2. Simple question for PHP programmers, hard for me!
    By Athens Collectibles in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 23 Mar 2012, 12:08 PM
  3. Simple php question
    By danwebman in forum General Questions
    Replies: 4
    Last Post: 18 Dec 2010, 04:17 PM
  4. A simple .php code question? Please help!
    By triplemoonranch in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Feb 2008, 01:55 AM

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