Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 customer info: phone to be made optional
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fb4u
VP-CART New User

66 Posts

Posted - July 01 2005 :  20:55:45  Show Profile  Reply with Quote
Is there any way to make the field for Phone number a OPTIONAL (not-required) field in the Customer Information form?
Thank you.

tarras1904
Starting Member

South Africa
4 Posts

Posted - August 14 2005 :  16:21:04  Show Profile  Reply with Quote
Hi,

To make Phone number on the Customer Info Form an optional item, you have to make a few amendments to shopcustomerform.asp

1. Amend line to:
CreateCustRow getlang("langCustPhone"),"strPhone", strPhone, "No"

2. and comment out the following lines of coding:

'If strPhone = "" Then
'sError = sError & getlang("langCustPhone") & getlang ("langCustRequired") & "<br>"
'End If

Cheers





Go to Top of Page

keng
VP-CART New User

152 Posts

Posted - August 14 2005 :  17:52:12  Show Profile  Reply with Quote
......and what if I want the "Company Name" to be Required what should I do?

Thanks!


Go to Top of Page

tarras1904
Starting Member

South Africa
4 Posts

Posted - August 15 2005 :  04:41:14  Show Profile  Reply with Quote
Hi

To make Company a required item, amend the shopcustomerform.asp as follows:

1. Amend the Line below:
CreateCustRow getlang "langCustCompany"),"strCompany",strCompany,"Yes"

2. Add the following coding in Subroutine Sub ValidateCustomerFields:

If strCompany = "" Then
sError = sError & getlang("langCustCompany") & getlang ("langCompanyRequired") & "<br>"
End If

3. Add the following record to the Languages table in your database:

field id = will be supplied by system
field lang = your language choice eg. English
field keyword = langcompanyrequired
field caption = Company is required

Hope this helps
Cheers


Go to Top of Page

keng
VP-CART New User

152 Posts

Posted - August 15 2005 :  12:27:59  Show Profile  Reply with Quote
Thanks! I tried the codes above and it worked!


Edited by - keng on August 15 2005 21:31:27
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00