Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

how to make phone number field optional when reg... (fixed)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-18-2004, 06:08 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default how to make phone number field optional when reg... (fixed)

i waded through register.php and 3 pages of search results with no luck. anyone know this one?
__________________
version: 4.4.1 Gold [Unix]
Reply With Quote
  #2  
Old 06-19-2004, 04:10 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Look for this (about line 104 in include/register.php):

Code:
$fillerror = (empty($uname) || !empty($error) || empty($passwd1) || empty($passwd2) || ($passwd1 != $passwd2) || empty($firstname) || empty($lastname) || empty($b_address) || empty($b_city) || (!empty($states) && empty($b_state)) || empty($b_country) || empty($b_zipcode) || empty($phone) || empty($email));

Take out the phone part and I think you should be good to go.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #3  
Old 06-20-2004, 01:33 AM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

sorry, i shoulda mentioned i already did that. it's still the same, even after i did cleanup.php. well...i think maybe it can process without the phone #, but people won't know that until i get rid of that star...

ok, i went and found
skin1/main/register_contact_info.tpl and changed

<tr valign=middle>
<td align=right>{$lng.lbl_phone}</td>
<td><font class=Star>*</font></td>

to

<tr valign=middle>
<td align=right>{$lng.lbl_phone}</td>
<td></td>

done
__________________
version: 4.4.1 Gold [Unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:55 AM.

   

 
X-Cart forums © 2001-2020