Forums / Templates, Stylesheets, Page Layout / Order Confirmation Email - I want to add more details

Order Confirmation Email - I want to add more details

Locked

Views: 1,592

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Aug 2009, 12:40 AM
#1
shaza avatar

shaza

New Zenner

Join Date:
Mar 2009
Posts:
11
Plugin Contributions:
0

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.

11 Aug 2009, 1:52 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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 :blush:

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:```
// 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.