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
    58,469
    Blog Entries
    3
    Plugin Contributions
    111

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    58,469
    Blog Entries
    3
    Plugin Contributions
    111

    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!
    Donations always welcome: www.zen-cart.com/donate

    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. Email order confirmation total problem
    By gapi78 in forum General Questions
    Replies: 6
    Last Post: 22 Nov 2007, 09:05 AM
  2. Can I change product details in order confirmation email?
    By ducksigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2007, 11:29 PM
  3. Re-format order confirmation eMail
    By Stuff4Toys in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2007, 01:10 AM
  4. Confirmation Email Edit - Money Order module
    By DiZZ in forum General Questions
    Replies: 1
    Last Post: 21 Jan 2007, 09:07 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
  •