Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Oct 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    And also because i am now being told this is like rocket science that is incomprehendable (?) here is a run down:

    Gift Certificate for non customers = plain text emails as standard

    Plain text emails to non customers must therefor be a command in the zencart files somewhere to achieve this

    > How do i change than setting to html.

  2. #12
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Changing gift certificate email to html as standard?

    How many times does it have to be said...

    Linda showed you how:

    Admin>>>configuration>>>Email Options

    Use MIME HTML When Sending Emails
    Send e-mails in HTML format

    true
    false
    20 years a Zencart User

  3. #13
    Join Date
    Oct 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    How many times do i have to reply saying i have done all of those things?? I am amazed you both seem to be way off the mark. Here's the quote from my actual reply to Linda, learn to read in future please:
    I've changed the settings to html from the admin-config
    Seem the issue may lie in the phpmailer file located here. This is the only file issue i can find that would set a email specifically to plain/text

    public_html/shop/includes/classes/class.phpmailer.php

    Line #48 : var $ContentType = "text/plain";

    Line #245 : $this->ContentType = "text/plain";

    Line #870 : "text/plain", "");

    Line #900 : "text/plain", "") . $this->LE;
    In future please get a clue before being rude about a issue either of you clearly have no knowledge of. Either that or read my replies fully.

  4. #14
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Changing gift certificate email to html as standard?

    Around line 245, do you have the following?

    PHP Code:
      /**
         * Sets message type to HTML.  
         * @param bool $bool
         * @return void
         */
      
    function IsHTML($bool) {
        if(
    $bool == true)
        
    $this->ContentType "text/html";
        else
        
    $this->ContentType "text/plain";
      } 
    (PS: what version of ZC are you using?)
    20 years a Zencart User

  5. #15
    Join Date
    Oct 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    Hang on i'll check

    Someone posted this thread ages ago too:

    https://www.zen-cart.com/forum/showthread.php?t=39858

  6. #16
    Join Date
    Oct 2006
    Posts
    52
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    And yes its exactly the same. This was all i was meaning about zencart setting the non customer gift certificates to plain/text and a simple way around it.

    So is this the file, and would you change the variables to html/text?

    I'm also using 1.3.7

  7. #17
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Changing gift certificate email to html as standard?

    You may get some pointers HERE
    20 years a Zencart User

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

    Default Re: Changing gift certificate email to html as standard?

    ladygodiva, while their points are valid in the context in which they've read the message and their understanding of what can be done, it's clear everyone reading your requests has totally missed your specific point, or they don't know how to adjust its operation. And that's fine ... for them.

    The email capability has intentionally been written to force outbound messages for non-customers to TEXT format ... for the reasons discussed above, and a few others.

    However, that doesn't mean you can't change it for your site specifically.

    So, here goes, but with a disclaimer first, in case people following along foolishly think this is a smart way to put on a bandage but end up shooting themselves in the foot instead ...

    DO NOT DO THIS IF YOU'RE LOOKING FOR A BLANKET "FIX" to get HTML messages sending from your site. If you're not getting HTML emails, you're looking in the WRONG PLACE.

    LOOK HERE INSTEAD: http://www.zen-cart.com/wiki/index.p...Email_Problems




    To force outgoing GV emails to be in HTML mode regardless of customer preference, find line 120 in your /includes/functions/functions_email.php file, where the following section of code appears, and insert the highlighted lines as shown:
    Code:
          //determine what format to send messages in if this is an "extra"/admin-copy email:
          if (ADMIN_EXTRA_EMAIL_FORMAT == 'TEXT' && substr($module,-6)=='_extra') {
            $email_html='';  // just blank out the html portion if admin has selected text-only mode
          }
    
          if ($customers_email_format != 'HTML' && $email_html != '' && ($module == 'gv_send' || $module == 'gv_mail')) {
            $customers_email_format = 'HTML';
          }
          
          //notifier intercept option
          $zco_notifier->notify('NOTIFY_EMAIL_AFTER_EMAIL_FORMAT_DETERMINED');
    .

    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.

  9. #19
    Join Date
    Jun 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    I tried this and it worked like a charm...thanks, DrByte!

  10. #20
    Join Date
    Dec 2008
    Location
    Florida
    Posts
    49
    Plugin Contributions
    0

    Default Re: Changing gift certificate email to html as standard?

    thank you!!! thank you!!! thank you DrByte!!!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 changing gift certificate to Store Dollars
    By muah in forum Customization from the Admin
    Replies: 6
    Last Post: 6 Sep 2014, 08:36 PM
  2. v150 Only show gift certificate option on payment page if customer has a gift certificate
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 21 Jul 2014, 08:03 PM
  3. Want to use a printed gift certificate (with code) in the gift certificate process?
    By HelenSama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 15 Apr 2008, 02:04 PM

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