Page 1 of 1

Phone number required?

Posted: Fri Sep 18, 2015 2:56 am
by mbartens
Currently a phone number is required for orders. Is there a way to disable that?

Re: Phone number required?

Posted: Fri Sep 18, 2015 3:38 am
by nadeem
If you are talking about making the the phone number field optional, you can disable the required validation from phone number field. To do so open Website/Checkout/EditBillAddress.aspx and locate

Code: Select all

<td valign="top" colspan="2">
<asp:TextBox ID="Telephone" runat="server" EnableViewState="false" MaxLength="30" Width="250"></asp:TextBox> 
<asp:Label ID="TelephoneRequiredLabel" runat="server" Text="*" CssClass="requiredField"></asp:Label>
<asp:RequiredFieldValidator ID="TelephoneRequired" runat="server" Text="*"
ErrorMessage="Telephone number is required." ControlToValidate="Telephone"
EnableViewState="False" SetFocusOnError="false" Display="Dynamic"></asp:RequiredFieldValidator>
</td>
and replace with

Code: Select all

<td valign="top" colspan="2">
<asp:TextBox ID="Telephone" runat="server" EnableViewState="false" MaxLength="30" Width="250"></asp:TextBox> 
<%--<asp:Label ID="TelephoneRequiredLabel" runat="server" Text="*" CssClass="requiredField"></asp:Label>
<asp:RequiredFieldValidator ID="TelephoneRequired" runat="server" Text="*"
ErrorMessage="Telephone number is required." ControlToValidate="Telephone"
EnableViewState="False" SetFocusOnError="false" Display="Dynamic"></asp:RequiredFieldValidator>--%>
</td>
Note that the validation is commented out. However, you should be aware that the phone number is the requirement for SkipJack payment gateway. Hopefully you aren't processing your payments using SkipJack. Hope this helps.

Re: Phone number required?

Posted: Fri Sep 18, 2015 5:08 am
by mbartens
Thank you. Not using SkipJack. Do I have to do anything so it isn't required for manual orders?

Re: Phone number required?

Posted: Fri Sep 18, 2015 5:46 am
by nadeem
Yes, you have to comment out or remove the validation code for phone at Admin/Orders/Create/CreateOrder3.aspx as well.

Re: Phone number required?

Posted: Wed Sep 23, 2015 3:09 am
by mbartens
Thank you!

I did find it in a few more places:
Checkout/EditBillAddress.aspx
Checkout/EditShipAddress.aspx
ConLib/Checkout/AddressDetails.ascx
ConLib/Checkout/UserAddress.ascx
Members/MySubscriptions
Mobile/Checkout/EditBillAddress.aspx
Mobile/Checkout/EditShipAddress.aspx