Skip to Content
author's profile photo Former Member
Former Member

Mandatory address fields

Hi,

In Ireland we do not have zip or post codes, and the city is not always required. If these are not entered within shipping (and I guess billing) then the checkout process cannot proceed. How can I change these defaults?, this will annoy the hell out of my customers if this cannot be changed and a such is not compatible with the Irish market.

Ideally the fields that I would like to have as mandatory are:

Address Label

Street1

State

Thanks.

Martin.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 07, 2008 at 04:25 PM

    Make that County rather than State!.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 13, 2008 at 09:18 PM

    Hi Martin,

    I would think that just set default data and making the controls invisible might work.

    Edit the ~/common/controls/address.ascx somthing like this:

    <asp:textbox id="txtPostalCode" runat="server" Columns="12" MaxLength="50" Text="0" Visible="false"></asp:textbox>
    

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Just to update this issue. In the end I used a combination of dummy controls, autopostback, and the page unload event to bypass the problem. It involves automatically entering zero's into the hidden fields if no value was present, and then on the unload event (after verification had been passed), opening the address and removing the zero's as well as formatting the sales order addresses correctly (which had to be done anyway for Ireland, US format is not acceptable). Extra complications surrounded new address creation, or the editing of addresses. Not ideal (especially having to use autopostback), but at least my customers will not be asked for data that is not mandatory in Ireland.

      In a future version it would be good if you could remove your verification code and replace with validation controls. At least this way the system could easily be customised.

      Edited by: Martin barrett on Mar 28, 2008 10:34 AM

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 12:19 PM

    Hi Guys,

    I have started work on the next phase of our website development, and am in the process of implementing SP1 P1.

    I must admit than I am a bit disappointed that as far as I can see the zipcode and the city fields are still mandatory via code rather than controls within the relating pages. My only work around at the time was some rather inefficient "ducking and diving", by populating fields and then unpopulating them as the order progressed. Ongoing we are not happy to accept this. How practical do you guys think it is for me to write a new page/controls, combining the functionality of the shipping and billing pages, thereby eliminating the mandatory field problem?.

    I would appreciate any comments or any advice you may have to offer.

    Thanks.

    Martin.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.