Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    11
    Plugin Contributions
    0

    Default Order Confirmation Email - I want to add more details

    So I've been having major problems with the order confirmation emails.

    The client of mine insists on wanting the product description show up in the confirmation email as well as the individual price for each item (it shows only according to quantity by default).

    Is there any way to do this? I am banging my head on it, it's kind of silly either way that it doesn't do it automatically.

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

    Default Re: Order Confirmation Email - I want to add more details

    First, you should tell them that they shouldn't be doing ANY order-fulfillment or accounting based on the emails. They should be using the admin UI for that.
    But, you and I both know they'll fire you if you tell them that

    So ... you'll have to get your sleeves dirty and alter the code in the create_add_products() method of the order class at /includes/classes/order.php where it builds the $this->products_ordered and $this->products_ordered_html variable contents:
    Code:
          // build output for email notification
          $this->products_ordered .=
    Note that the product description is never stored as part of the order (and frankly in my opinion if the product name and model aren't adequate then the storeowner really needs to rethink things anyway), so if you need the description, you're going to have to run a new query to retrieve it from the database ... a fresh query for each line item in the order.
    .

    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.

 

 

Similar Threads

  1. v138a Modify Product Details in order confirmation email
    By WilpackPackaging in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2015, 10:57 PM
  2. Adding more details to order confirmation
    By xmenoloks2 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 27 Jan 2010, 02:28 AM
  3. change order confirmation email product details
    By stormieau in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Apr 2009, 09:03 PM
  4. Bank Details on Order Confirmation Email
    By Mike_Dean in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 19 Sep 2008, 04:54 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