Make fields NOT required during checkout process

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
aa@ilogon.com
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Fri Jan 16, 2009 11:20 pm

Make fields NOT required during checkout process

Post by aa@ilogon.com » Mon Apr 27, 2009 10:50 pm

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!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Make fields NOT required during checkout process

Post by mazhar » Tue Apr 28, 2009 9:32 am

May be you need to modify ConLib/OnePageCheckout control and adjust its validation.

cswebtech
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Wed Aug 12, 2009 11:10 am

Re: Make fields NOT required during checkout process

Post by cswebtech » Tue Aug 25, 2009 9:04 am

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!

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Make fields NOT required during checkout process

Post by afm » Tue Aug 25, 2009 10:44 am

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>
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

cswebtech
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Wed Aug 12, 2009 11:10 am

Re: Make fields NOT required during checkout process

Post by cswebtech » Thu Sep 10, 2009 7:53 am

Thanks so much for the help!!!

arenet
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 25
Joined: Mon Feb 15, 2010 1:32 pm

Re: Make fields NOT required during checkout process

Post by arenet » Tue Apr 27, 2010 3:53 pm

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>
Mazhar,

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Make fields NOT required during checkout process

Post by mazhar » Wed Apr 28, 2010 4:37 am

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.

arenet
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 25
Joined: Mon Feb 15, 2010 1:32 pm

Re: Make fields NOT required during checkout process

Post by arenet » Wed Apr 28, 2010 7:50 am

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.
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.

Thanks again for your help.

Post Reply