Zen Cart Logo
Forums / Managing Customers and Orders / Fax number requirement

Fax number requirement

Locked

Views: 2,025

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 Jul 2009, 9:50 PM
#1
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Fax number requirement

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?

29 Jul 2009, 5:00 PM
#2
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Re: Fax number requirement

Can anyone help with this?

29 Jul 2009, 9:58 PM
#3
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: Fax number requirement

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.

30 Jul 2009, 11:58 PM
#4
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Re: Fax number requirement

The only problem is that Fax Number is not list on my minimum values page.

How do I add it?

31 Jul 2009, 3:46 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Fax number requirement

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?

12 Aug 2009, 9:19 PM
#6
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Re: Fax number requirement

  • 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?

17 Aug 2009, 5:37 PM
#7
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

Re: Fax number requirement

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