Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    red flag re; Adding email advice, after a customer makes a purchase

    What's the best file to edit to add extra email information, after a customer makes a purchase ? I can see the email folder with all the html templates. I'm wondering if it might be email_template_checkout.html or email_template_order_status.html

    The question then becomes, how do I add extra customer advice to the html template. i.e. where exactly do I put it ? Is there a structure I have to follow or a special variable in a PHP file I can add extra info to, that is then referred to in the html email template ? or do I hard code it in the html email template ?
    Thanks,
    007

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: re; Adding email advice, after a customer makes a purchase

    "email advice"? Do you mean tips on how to use email?

    Of course you don't, but it's not clear what or why you want to add "advice" someplace.
    What do you want to say, and why? What's the business reason for this?
    And are you using HTML-formatted emails, or text-only?
    .

    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
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: re; Adding email advice, after a customer makes a purchase

    Just using whatever the standard ZenCart email setup is. I just want to be able to add extra advice in the auto generated product purchase emails, like store policies, general product information etc...

    They look like text only. Thought they were HTML before. “Use MIME HTML When Sending Emails” is set to true. They appear like text emails though.

    V 1.3.9h
    Last edited by HeyIts007; 22 Dec 2012 at 11:19 AM.
    Thanks,
    007

  4. #4
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: re; Adding email advice, after a customer makes a purchase

    Ahh I can see the HTML or TEXT emails is set by the store account user, via an option they have when they log in.
    Thanks,
    007

  5. #5
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: re; Adding email advice, after a customer makes a purchase

    On another note. Is there a way to force HTML only emails ? Would prefer that or at least have them default to HTML initially with the customer option to turn off. I think the HTML looks better than text and is easier to read. Nowadays near everyone is happy to accept HTML emails. Especially we now have broadband internet.
    Thanks,
    007

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: re; Adding email advice, after a customer makes a purchase

    Text-only emails are built from text defines located in your language files, whichever language file is used for each page. So a create-account email will use the create-account language file when finding content for email messages. Plus the email_extras language file.

    HTML-formatted messages are built from the SAME defines in the language files, and then the content is assembled based on the instructions in the email templates in the /email/ folder. So to make *changes* to BOTH formats, you would do your changes in the language files directly, since those will be reflected in the HTML version as well. If you're making *additions*, then you really ought to just add them onto the *existing* language defines, and NOT create new ones, else you'll need to make many programming changes to incorporate new ones in all the places they belong.

    You can change the email "default" preference from text to html in Admin->Configuration->Customer Details. This will affect only future customers, not existing ones.
    .

    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.

  7. #7
    Join Date
    Sep 2010
    Posts
    263
    Plugin Contributions
    0

    Default Re: re; Adding email advice, after a customer makes a purchase

    Ahh ok thanks. I was going to edit the html email template, but wasn't sure if there was another recommended approach. I guess that is the approach.
    Last edited by HeyIts007; 23 Dec 2012 at 11:50 AM.
    Thanks,
    007

 

 

Similar Threads

  1. v154 URGENT, No purchase record after customer purchase
    By lcc93611 in forum General Questions
    Replies: 3
    Last Post: 9 Jan 2016, 11:33 PM
  2. v150 Additional Information in Customer Email after purchase
    By mc12345678 in forum General Questions
    Replies: 0
    Last Post: 22 Jun 2013, 07:20 PM
  3. Sending Customer Confirmation Email After Purchase
    By cqdeline in forum Managing Customers and Orders
    Replies: 5
    Last Post: 24 May 2012, 12:26 PM
  4. Email notification if a customer makes a change to their details?
    By southpacific in forum Managing Customers and Orders
    Replies: 9
    Last Post: 5 Apr 2010, 07:28 PM
  5. array_merge() error after ppe makes a customer on my db when order compleate
    By hungrytazman in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 19 Mar 2010, 12:18 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR