Make fields NOT required during checkout process
-
- Ensign (ENS)
- Posts: 16
- Joined: Fri Jan 16, 2009 11:20 pm
Make fields NOT required during checkout process
Our sites offers some free subscriptions as "products" in the system. When a user selects one of these free products and checks out, it obviously does not ask for a credit card number. (which is desired) However, we would also like for it to not required address and phone number to make the process easy and reduce drop outs. How do we remove these fields as required during checkout?
Thanks!
Thanks!
Re: Make fields NOT required during checkout process
May be you need to modify ConLib/OnePageCheckout control and adjust its validation.
Re: Make fields NOT required during checkout process
I don't see where the phone number is required in the OnePageCheckout code. Can you help with which file this is in? I don't want then to have to include a phone number to check out.
Thanks!
Thanks!
Re: Make fields NOT required during checkout process
In OnePageCheckout.ascx, remove this:
Code: Select all
<asp:RequiredFieldValidator ID="BillToPhoneRequired" runat="server" Text="*"
ErrorMessage="Phone number is required." Display="Static" ControlToValidate="BillToPhone"
EnableViewState="False" SetFocusOnError="false" ValidationGroup="OPC"></asp:RequiredFieldValidator>
Re: Make fields NOT required during checkout process
Thanks so much for the help!!!
Re: Make fields NOT required during checkout process
Mazhar,afm wrote:In OnePageCheckout.ascx, remove this:Code: Select all
<asp:RequiredFieldValidator ID="BillToPhoneRequired" runat="server" Text="*" ErrorMessage="Phone number is required." Display="Static" ControlToValidate="BillToPhone" EnableViewState="False" SetFocusOnError="false" ValidationGroup="OPC"></asp:RequiredFieldValidator>
I made this deletion and uploaded the corrected conlib file, but checkout still requiring phone number.
What did I miss?
Thanks in advance...
http://216.54.71.9/Default.aspx
Re: Make fields NOT required during checkout process
Where you uploaded the control file, means make sure that you made changes to ConLib/OnePageCheckout.ascx file and when uploading your are replacing old file with the newly modified one.
Re: Make fields NOT required during checkout process
The upload must not have taken, so I deleted the line directly at the directory and it seemed to have corrected the required phone parameter.mazhar wrote:Where you uploaded the control file, means make sure that you made changes to ConLib/OnePageCheckout.ascx file and when uploading your are replacing old file with the newly modified one.
Thanks again for your help.