X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   how to make phone number field optional when reg... (fixed) (https://forum.x-cart.com/showthread.php?t=8166)

AKR 06-18-2004 06:08 PM

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?

BCSE 06-19-2004 04:10 AM

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

AKR 06-20-2004 01:33 AM

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 :wink:


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.