Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

    Default Re: Fax number requirement

    Can anyone help with this?

  3. #3
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

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

  4. #4
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

    Default Re: Fax number requirement

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

    How do I add it?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    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.

  6. #6
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. v151 fax number on order page?
    By kitcorsa in forum General Questions
    Replies: 7
    Last Post: 18 Aug 2014, 01:56 PM
  2. Make Fax Number Required
    By CnTGifts in forum General Questions
    Replies: 4
    Last Post: 31 Dec 2009, 11:55 PM
  3. Making FAX NUMBER required?
    By kgmmusic in forum Managing Customers and Orders
    Replies: 2
    Last Post: 10 Aug 2009, 06:47 AM
  4. VAT number requirement for customers
    By Janneman664 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 13 Sep 2007, 11:00 AM
  5. Fax Number in account editing
    By kuroi in forum Bug Reports
    Replies: 2
    Last Post: 15 May 2007, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg