New Zenner
- Join Date:
- Nov 2007
- Posts:
- 78
- Plugin Contributions:
- 0
How to override header_php.php or how to add a new field to order confirmation email
This is really a smaller part of a bigger question. I have another threat about adding a field to a payment module http://zen-cart.com/forum/showthread.php?t=85766
I have successfully added the field, made it required and validated it (its format, not its actual existance). It also passes to the confirmation page and displays, but it doesn't get included in the Order Confirmation Email. So far my efforts to get this in the email have been futile, but now I am looking to edit the header_php.php file in the checkout_confirmation page to set the value of the accountNum that is passed into the page to a SESSION variable that can be referenced in the order.php class file.
I am not sure how to override this file though. It's original path is
includes\modules\pages\checkout_confirmation
I have tried using
includes\modules\MYTEMPLATE\pages\checkout_confirmation
includes\modules\pages\MYTEMPLATE\checkout_confirmation
includes\modules\pages\checkout_confirmation\MYTEMPLATE
but it doesn't read the new file. Can you override these files, or do you need to edit them directly? If you can't override them, my guess is that I don't need to edit the file to get the custom field passed into the Order Confirmation email in the first place.
If that is the case, if someone could point me in the right direction to get that info passed to the email I would appreciate it. I figured it was all contained in the payment module itself, but I haven't been able to get it to work out of there so far.
Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.