Forums / General Questions / Add Date of Birth to eMail Order Confirmation $EXTRA_INFO Box

Add Date of Birth to eMail Order Confirmation $EXTRA_INFO Box

Views: 717

Results 1 to 3 of 3
7 Jan 2012, 11:57 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Add Date of Birth to eMail Order Confirmation $EXTRA_INFO Box

How do you add additional customer info to the $EXTRA_INFO box at the bottom of email order confirmations?

8 Jan 2012, 12:53 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Add Date of Birth to eMail Order Confirmation $EXTRA_INFO Box

Ironically, more people ask how to remove that than they do how to add to it.

You would need to completely hack up the code in the functions_email file to add new parameters to pass as well as create more content to output. And that'll make upgrading more complicated in the future.
You might be better off adding more content to the array that's returned from that function after it's run.

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

8 Jan 2012, 1:42 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Add Date of Birth to eMail Order Confirmation $EXTRA_INFO Box

DrByte:

Ironically, more people ask how to remove that than they do how to add to it.

You would need to completely hack up the code in the functions_email file to add new parameters to pass as well as create more content to output. And that'll make upgrading more complicated in the future.
You might be better off adding more content to the array that's returned from that function after it's run.

Thank you. I've changed the Date of Birth feature to a Wedding Date feature so I would need it to come through with each order. I see there's a very similar topic you've been helping with, here:

http://www.zen-cart.com/forum/showthread.php?p=1092738#post1092738

So, I've added a reply to the bottom of that thread as it seems I might be able to use the same ideas that are there?