I need to make the fax number required and for that to be included in the order and confirmation email.
Does anyone know how to accomplish this?
I need to make the fax number required and for that to be included in the order and confirmation email.
Does anyone know how to accomplish this?
Can anyone help with this?
Hi there
I haven't worked with that part of ZC for a while, however I would go to config > min values and set fax# to 5 or something.
The only problem is that Fax Number is not list on my minimum values page.
How do I add it?
There's a lot of work involved in that, including but probably not limited to:
- write code to validate the fax number, even if it's just to check whether it's blank vs "something" entered (or if you want to go to the trouble of adding a minimum-value switch for it, you could do that too ... I wouldn't)
- write javascript part to do on-screen validation
- add asterisk beside the field for the template, via the language file
- alter code which builds the order-confirmation email to include it in both the text-only and html versions of the email, and add language support to incorporate the appropriate text around it
- update html email template to have a fax-number placeholder
If I were doing it I'd probably look for places where the company-name field is handled and treat it similarly. Or maybe the customer's phone-number field?
.
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.
- alter code which builds the order-confirmation email to include it in both the text-only and html versions of the email, and add language support to incorporate the appropriate text around it
- update html email template to have a fax-number placeholder
What files would I need to alter?
What about showing the fax number on the Order Details page in the Admin section?
I need, at minimum, to be able to display the fax number in the Admin section. Preferably in the confirmation email as well.
I tried altering where the data field "customers_telephone" to also include "customers_fax". The result was a blank screen when customers tried to check out.
The files I changed (and had to change back):
admin/includes/classes/order.php
admin/orders.php
includes/classes/order.php
includes/languages/english.php
includes/modules/pages/account_edit/header_php.php
includes/modules/create_account.php
includes/modules/MY TEMPLATE/no_account.php
includes/modules/MY TEMPLATE/create_account.php