Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Posts
    10
    Plugin Contributions
    0

    Default Editing email order confirmation

    Hello,

    I finally figured out the over-ride system and it works great.

    When my order gets processed, there are several attributes for each product and I need to modify the order confirmation email and add some line breaks in there so my attributes are on individual lines rather than all on one line.

    Where would I find the code that plugs the data into the email template?

    Thanks in advance.

  2. #2
    Join Date
    Oct 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Editing email order confirmation

    *bump*

    can someone please assist me here?

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

    Default Re: Editing email order confirmation

    By default, attributes are already listed one-per-line in the confirmation emails.
    .

    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.

  4. #4
    Join Date
    Oct 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Editing email order confirmation

    Then can you help me figure out why they are showing on 1 line?

    I have attached a screenshot to show you what I am talking about.

    As you can see, they are showing up as

    Products
    1 x 3 Specialty Pizza's Pizza 1 Matador w/ Mild Chile Peppers Pizza 2 Matador w/ Mild Chile Peppers Pizza 3 Fajita $165.00
    ---------
    Sub-Total: $165.00
    Discount Coupon: devtest : -$165.00
    Total: $0.00
    rather than

    Products
    1 x 3 Specialty Pizza's
    Pizza 1- Matador w/ Mild Chile Peppers
    Pizza 2 - Matador w/ Mild Chile Peppers
    Pizza 3 - Fajita
    $165.00
    ---------
    Sub-Total: $165.00
    Discount Coupon: devtest : -$165.00
    Total: $0.00
    Where can I modify the formatting of the email? I found the email template, but it does not have the actual attribute code. It just has 1 variable that displays the attributes.

    Thanks in advance for the help
    Attached Images Attached Images  

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

    Default Re: Editing email order confirmation

    Try editing your /includes/classes/order.php file:
    around line 850 you'll see:
    Code:
          '<nobr><small><em> '. $this->products_ordered_attributes .'</em></small></nobr></td>' .
    change it to:
    Code:
          '<nobr><small><em> '. nl2br($this->products_ordered_attributes) .'</em></small></nobr></td>' . "\n" .
    .

    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.

  6. #6
    Join Date
    Oct 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Editing email order confirmation

    Perfect.... thanks

 

 

Similar Threads

  1. v150 Order confirmation email editing
    By Daviator in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 20 Apr 2012, 08:51 PM
  2. Editing email confirmation .
    By Steeveef in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Jun 2010, 05:11 PM
  3. Editing Order Confirmation Email
    By JGiacchi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Mar 2009, 11:16 PM
  4. Editing order confirmation email
    By KTNaturals in forum General Questions
    Replies: 6
    Last Post: 10 Feb 2008, 04:57 AM
  5. Editing The Layout Of The Order Confirmation Email
    By steve_ringuk in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2008, 05:23 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