Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42
  1. #11
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: Common Email Styling [Support Thread]

    G'day,

    This plugin comes out of customisation work lat9 has been doing for me on the online dive shop at https://www.scubadoctor.com.au/diveshop/

    We've gone through and totally revised all of the site's email content plus made mods to do things like: include social media icons, and highlight 'non-standard' details of orders in the admin emails to help improve back-end workflow.

    We're just about to finalise making access to a tax invoice that meets Australian Tax Office requirements available to customers via the Order Confirmation email. (It's already working from the Order Information page.)

    Plus the emails now pass HTML validation, which helps with displaying them in some email readers.

    Best regards, Lloyd Borrett.
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

  2. #12
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,564
    Plugin Contributions
    89

    Default Re: Common Email Styling [Support Thread]

    v1.0.0 of the plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2028

    Please note that this plugin simply
    • moves all CSS styling to a (later in-lined) CSS file
    • moves the specification of the logo's file information to a common language file
    • adds an HTML id= tag to each template's <body> tag
    • adds a <meta> viewport tag to each template's <head> section

    Some of the other changes that Lloyd refers to, like the emails now passing HTML validation, are specific to his site's customizations.

  3. #13
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Common Email Styling [Support Thread]

    My mouse blows bubbles on your site. Very cool. Glen Iris.


    Quote Originally Posted by lloyd_borrett View Post
    This plugin comes out of customisation work lat9 has been doing for me on the online dive shop at https://www.scubadoctor.com.au/diveshop/

  4. #14
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Common Email Styling [Support Thread]

    Quote Originally Posted by lat9 View Post
    v1.0.0 of the plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2028

    Please note that this plugin simply
    • moves all CSS styling to a (later in-lined) CSS file
    • moves the specification of the logo's file information to a common language file
    • adds an HTML id= tag to each template's <body> tag
    • adds a <meta> viewport tag to each template's <head> section

    Some of the other changes that Lloyd refers to, like the emails now passing HTML validation, are specific to his site's customizations.
    You rock!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #15
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Common Email Styling [Support Thread]

    Years ago, I took the time to update all 13 email templates so that they were all consistent in look/feel.. Today I took those same changes and applied them to ONE FILE, and got treated to INSTANT gratification applied to ALL 13 email templates.. (all without spilling a drop of my delicious wine )

    Thanks lat9 for an AWESOME module!!

    One question.. One thing I could never quite figure out is how to add the store address and/or phone/fax from the store's configuration information just below the logo. Any hints on how to do this??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #16
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,564
    Plugin Contributions
    89

    Default Re: Common Email Styling [Support Thread]

    Thanks, Diva. That was exactly the problem that was solved by this plugin. Lloyd (@lloyd_borrett) had tasked me with getting the same look-and-feel in all the emails sent by his shop and I could see myself applying each incremental change to 13 email templates (not my idea of a fun time). Pulling the CSS out to a separate file allowed me, like you, to make those incremental changes in one place!

    One way to add extra header information (I'll note the change request in the plugin's GitHub repository) would be to update each of the templates adding the highlighted element to the email's logo area:
    Code:
          <!-- Header Section -->
          <div class="header">
            <img src="$EMAIL_LOGO_FILE" alt="$EMAIL_LOGO_ALT_TEXT" title="$EMAIL_LOGO_ALT_TEXT" width="$EMAIL_LOGO_WIDTH" height="$EMAIL_LOGO_HEIGHT" border="0" />
             $EXTRA_HEADER_INFO
          </div>
    Then, update the files /YOUR_ADMIN/includes/languages/english/email_extras.php and /includes/languages/english/YOUR_TEMPLATE/email_extras.php, adding:
    Code:
      define ('EMAIL_LOGO_FILENAME', 'header.jpg');  //-File is present in /email folder
      define ('EMAIL_LOGO_WIDTH', '550');
      define ('EMAIL_LOGO_HEIGHT', '110');
      define ('EMAIL_LOGO_ALT_TITLE_TEXT', 'Zen Cart! The Art of E-commerce');
      define ('EMAIL_EXTRA_HEADER_INFO', '<div>Extra stuff for header</div>');
    Finally, update the zen_mail function to pull that information in to all email templates:
    Code:
        if (!isset ($block['EMAIL_LOGO_ALT_TEXT']) || $block['EMAIL_LOGO_ALT_TEXT'] == '') $block['EMAIL_LOGO_ALT_TEXT'] = EMAIL_LOGO_ALT_TITLE_TEXT;
        if (!isset ($block['EMAIL_LOGO_WIDTH']) || $block['EMAIL_LOGO_WIDTH'] == '') $block['EMAIL_LOGO_WIDTH'] = EMAIL_LOGO_WIDTH;
        if (!isset ($block['EMAIL_LOGO_HEIGHT']) || $block['EMAIL_LOGO_HEIGHT'] == '') $block['EMAIL_LOGO_HEIGHT'] = EMAIL_LOGO_HEIGHT;
        if (!isset ($block['EXTRA_HEADER_INFO']) || $block['EXTRA_HEADER_INFO'] == '') $block['EXTRA_HEADER_INFO'] = EMAIL_EXTRA_HEADER_INFO;

  7. #17
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Common Email Styling [Support Thread]

    Joy fills the world and happiness abounds! Thanks Lat, you rock!!!

  8. #18
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Common Email Styling [Support Thread]

    Will this work on zen cart v1.5.1?
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,564
    Plugin Contributions
    89

    Default Re: Common Email Styling [Support Thread]

    Quote Originally Posted by countrycharm View Post
    Will this work on zen cart v1.5.1?
    Yes, but you'll need to merge the core-file changes to /includes/functions/functions_email.php (the plugin uses ZC 1.5.4 as its basis for any core-file modifications, and there were significant changes in functions_email.php between v1.5.1 and 1.5.4).

  10. #20
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Common Email Styling [Support Thread]

    Quote Originally Posted by lat9 View Post
    Thanks, Diva. That was exactly the problem that was solved by this plugin. Lloyd (@lloyd_borrett) had tasked me with getting the same look-and-feel in all the emails sent by his shop and I could see myself applying each incremental change to 13 email templates (not my idea of a fun time). Pulling the CSS out to a separate file allowed me, like you, to make those incremental changes in one place!
    No it was NO fun.. which is why I saved the work I had done to reuse for other clients.. This was LOADS easier!!!

    Quote Originally Posted by lat9 View Post
    One way to add extra header information (I'll note the change request in the plugin's GitHub repository) would be to update each of the templates adding the highlighted element to the email's logo area:
    Code:
          <!-- Header Section -->
          <div class="header">
            <img src="$EMAIL_LOGO_FILE" alt="$EMAIL_LOGO_ALT_TEXT" title="$EMAIL_LOGO_ALT_TEXT" width="$EMAIL_LOGO_WIDTH" height="$EMAIL_LOGO_HEIGHT" border="0" />
             $EXTRA_HEADER_INFO
          </div>
    Then, update the files /YOUR_ADMIN/includes/languages/english/email_extras.php and /includes/languages/english/YOUR_TEMPLATE/email_extras.php, adding:
    Code:
      define ('EMAIL_LOGO_FILENAME', 'header.jpg');  //-File is present in /email folder
      define ('EMAIL_LOGO_WIDTH', '550');
      define ('EMAIL_LOGO_HEIGHT', '110');
      define ('EMAIL_LOGO_ALT_TITLE_TEXT', 'Zen Cart! The Art of E-commerce');
      define ('EMAIL_EXTRA_HEADER_INFO', '<div>Extra stuff for header</div>');
    Finally, update the zen_mail function to pull that information in to all email templates:
    Code:
        if (!isset ($block['EMAIL_LOGO_ALT_TEXT']) || $block['EMAIL_LOGO_ALT_TEXT'] == '') $block['EMAIL_LOGO_ALT_TEXT'] = EMAIL_LOGO_ALT_TITLE_TEXT;
        if (!isset ($block['EMAIL_LOGO_WIDTH']) || $block['EMAIL_LOGO_WIDTH'] == '') $block['EMAIL_LOGO_WIDTH'] = EMAIL_LOGO_WIDTH;
        if (!isset ($block['EMAIL_LOGO_HEIGHT']) || $block['EMAIL_LOGO_HEIGHT'] == '') $block['EMAIL_LOGO_HEIGHT'] = EMAIL_LOGO_HEIGHT;
        if (!isset ($block['EXTRA_HEADER_INFO']) || $block['EXTRA_HEADER_INFO'] == '') $block['EXTRA_HEADER_INFO'] = EMAIL_EXTRA_HEADER_INFO;
    Outstanding.. Will apply these changes.. Thanks again!! You are the best!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  2. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 26 Aug 2022, 05:52 AM
  3. v154 Developer Override Email Address [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Dec 2015, 09:56 PM
  4. v154 Email Downloads Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Jun 2015, 06:41 PM
  5. PurpleShades Support Thread
    By kobra in forum Addon Templates
    Replies: 122
    Last Post: 18 May 2011, 07:18 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