If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Customizing receipt for specific items

Customizing receipt for specific items

Locked

Started by tigergirl on 2 Feb 2009, 6:32 PM · Views: 952

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
2 Feb 2009, 6:32 PM
#1
tigergirl avatar

tigergirl

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

Post #1 by tigergirl

Hello all,
I'd like to include a note on the receipt that is emailed to customers, but only for specific products. Is this possible?

Thanks for your help,
Leah

2 Feb 2009, 8:51 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

You'll have to write custom code to intercept the generated order contents and add extra content to the email it sends.
That involves scalpel and sutures and a careful study of the order class and its intricasies.

In v2.0, using a combination of the notifier/observer infrastructure and the new email templating system, the process is much simpler, although not trivial.

.
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.

5 Feb 2009, 11:26 PM
#3
tigergirl avatar

tigergirl

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

Post #3 by tigergirl

Thanks for your response, Dr. Byte.

I've followed the directions here (http://www.zen-cart.com/forum/showpost.php?p=326357&postcount=1) to add a new property and added a field to the product information in the back end. I know that it's being captured in the database. Now all I need to do is add a space in the receipt to show the extra note. I believe the files I need to be editing are

admin/classes/order.php
includes/languages/english/checkout_process.php

but I'm not sure what the PHP call should look like to get the information back out. Can you help?

Thanks so much!
Leah