Hi,
What you could do is,
Goto modules/AddressDisplay.ascx and remove;
<asp:Literal ID="lZipPostalCode" runat="server"></asp:Literal>Then modules/AddressDisplay.ascx.cs and comment out this line;
//this.lZipPostalCode.Text = Server.HtmlEncode(address.ZipPostalCode);
Then Goto modules/AddressEdit.ascx and remove;
<tr>
<td>
<%=GetLocaleResourceString("Address.ZipPostalCode")%>:
</td>
<td>
<nopCommerce:SimpleTextBox runat="server" ID="txtZipPostalCode" ErrorMessage="<% $NopResources:Address.ZipPostalCodeIsRequired %>">
</nopCommerce:SimpleTextBox>
</td>
</tr>Then modules/AddressEdit.ascx.cs and do this;
in Page_load event:
string txtZipPostalCode = "NULL";
txtZipPostalCode = string.Empty;
instead of
txtZipPostalCode.Text = string.Empty;
Then Public Address:
address.ZipPostalCode = "NULL";
instead of
address.ZipPostalCode = txtZipPostalCode.Text.Trim();
Then
string txtZipPostalCode = "NULL";
txtZipPostalCode = address.ZipPostalCode;
insead of
txtZipPostalCode.Text = address.ZipPostalCode;
and then in Validation group comment out this line;
//txtZipPostalCode.ValidationGroup = value;
This should sort out the issue, you will also need to comment out on registration page adn a few other page, but you need to give a fake value as the databse does not allow null fields..
But this is not hte best way todo this, you could use the DropDown list and put post code in a panel then use a if statement to hide postcode on country selection..
hope this helps, mike.. If you get any issues please tell me.