Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    113
    Plugin Contributions
    0

    Default Order Confirmation Email - How to Customize the format?

    We use the content of the Admin's order confirmation email to setup our own invoices. Copy and paste. (That's ok, I don't mind a little manual labor.)

    What I would like to customize is the line for Attributes. At this time, all the products and their attributes are flush left aligned, so, visually it all runs together into one square box of text along the left side.

    I would like the ATTRIBUTES line to be indented a few spaces. Or, if that's not possible, to insert some dashes or special characters to move the Attributes to the right a bit and visually break up the block of text.

    We are using TEXT emails throughout.

    I've spent quite a bit of time searching through lots of files but I can't find any bit of code that resembles the emails we're getting. So I can't figure out where to start working on this. I would think the customizing should be simple, if I knew where to start.

    Cyndy

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

    Default Re: Order Confirmation Email - How to Customize the format?

    Around line 752 of /includes/classes/order.php, you'll see this:
    Code:
          //------ bof: insert customer-chosen options to order--------
          $attributes_exist = '0';
          $this->products_ordered_attributes = '';
    Change this line as desired:
    Code:
          $this->products_ordered_attributes = ' - ';
    .

    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
    113
    Plugin Contributions
    0

    Default Re: Order Confirmation Email - How to Customize the format?

    Thank you! That's the place I was looking for. However, the special characters appeared at the end of the product line, ... rather than the beginning of the attributes line.

    I was able to insert my special characters on line 844 instead. I changed this line of code:

    Code:
    $this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
    TO THIS:

    Code:
    $this->products_ordered_attributes .= "\n\t" . ' - - -  ' . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
    So, now the special characters are in front of the attributes where I wanted them.

    I appreciate your help. I needed a push in the right direction. Thank you!


    Cyndy
    Last edited by daffy; 31 Dec 2008 at 01:13 AM.

 

 

Similar Threads

  1. v151 Where do I Customize Order Confirmation Email style?
    By earmsby in forum General Questions
    Replies: 3
    Last Post: 16 Apr 2013, 08:18 PM
  2. v150 How do I customize the order totals section of the order confirmation email?
    By brannon125 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Feb 2012, 10:30 AM
  3. Customize Order Confirmation Email - Add Field
    By Toot4fun in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2010, 08:00 PM
  4. Replies: 7
    Last Post: 21 Jun 2008, 01:07 AM
  5. Re-format order confirmation eMail
    By Stuff4Toys in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2007, 01:10 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