Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Make Telephone Required in Contact Us and Ask a Question

    I am using 1.5.8a. I would like to make the telephone required on both ask a question and contact us. For contact us, I went to /includes/templates/responsive_classic/templates/tpl_contact_us_default.php and changed the telephone code to

    Code:
    <label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
    <?php echo zen_draw_input_field('telephone', ($telephone), ' size="40" id="telephone" autocomplete="off" placeholder="' . ENTRY_REQUIRED_SYMBOL . '" required', 'telephone'); ?>
    <br class="clearBoth" />
    However, it is not putting in the required symbol or making it required. Is there something else or different I need to do?

    Thanks.

  2. #2
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Make Telephone Required in Contact Us and Ask a Question

    Whoops, I think that is an old file as I was mistakenly looking at the prior ZenCart folder for the older version. Where can I find that file I need to edit in Version 1.5.8a?

  3. #3
    Join Date
    Apr 2013
    Location
    Wisconsin
    Posts
    134
    Plugin Contributions
    0

    Default Re: Make Telephone Required in Contact Us and Ask a Question

    I think I found the correct file. In case anyone else needs to find it, it is: /includes/templates/template_default/templates/tpl_contact_us_default.php

    However, the minimum value I put in for telephone didn't work when I put in less numbers than the minimum, but at least the field is now required.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,556
    Plugin Contributions
    121

    Default Re: Make Telephone Required in Contact Us and Ask a Question

    You want to take the file

    includes/templates/template_default/templates/tpl_contact_us_default.php

    and copy it to

    includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

    So that you know that you have made changes to this file.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Oct 2023
    Location
    Johannesburg, South Africa
    Posts
    5
    Plugin Contributions
    0

    Default Re: Make Telephone Required in Contact Us and Ask a Question

    Quote Originally Posted by CookieMonster View Post
    I think I found the correct file. In case anyone else needs to find it, it is: /includes/templates/template_default/templates/tpl_contact_us_default.php

    However, the minimum value I put in for telephone didn't work when I put in less numbers than the minimum, but at least the field is now required.
    Hello, maybe you could help. How do I configure site so that visitors don't have to register and or log in, in order to send a message via the "Contact Us" or "Ask a Question" forms?

    https://www.automation-network.co.za...age=contact_us

    I would like visitors to my site to be able to send me their messages without needing to register and or log in.

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,210
    Plugin Contributions
    1

    Default Re: Make Telephone Required in Contact Us and Ask a Question

    Quote Originally Posted by dylanZA View Post
    Hello, maybe you could help. How do I configure site so that visitors don't have to register and or log in, in order to send a message via the "Contact Us" or "Ask a Question" forms?

    https://www.automation-network.co.za...age=contact_us

    I would like visitors to my site to be able to send me their messages without needing to register and or log in.
    I've replied to your original query on this at https://www.zen-cart.com/showthread....form&p=1397867
    Simon

 

 

Similar Threads

  1. Can I make the telephone field accept only numbers and not letters
    By willy12 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Jul 2015, 02:41 AM
  2. v150 Ask A Question/ Contact Us Hybrid
    By Decostyle in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 5 Dec 2013, 09:35 AM
  3. Can I make Shipping telephone number required?
    By beco1979 in forum General Questions
    Replies: 5
    Last Post: 12 Oct 2010, 11:47 PM
  4. Removing Telephone from required, Additional Contact Details
    By stefanl in forum Managing Customers and Orders
    Replies: 2
    Last Post: 9 Sep 2009, 12:16 AM
  5. how can I make mr/mrs and telephone not-required ?
    By kosetid.no in forum General Questions
    Replies: 4
    Last Post: 8 Nov 2008, 09:09 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR