Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Modifying Shipping/Billing Address Control

  1. #1
    Carzy is offline Junior Member
    Join Date
    Oct 2011
    Posts
    4

    Default Modifying Shipping/Billing Address Control

    Hi everyone,

    Trying to figure out how to:

    1. Rearrange the ordering of the elements in the address control - for instance, I want to swap "First Name" and "Last Name" so that "Last Name" is before "First Name". I've gone into checkout1.aspx but it looks like it's calling the table from another file but I can't figure out where! Haven't found a solution searching the forum

    2. At the moment when you select a country that doesn't have a state it shows "state.countrywithoutstate" - how do I either change this to something friendlier, or ideally how would I remove State as a dropdown box when a country without a states is selected?

    Hope someone can shed some light on this, spent a while trying to figure it out!

    Thanks!

    Carzy

  2. #2
    Skriver is offline Senior Member
    Join Date
    Apr 2012
    Posts
    188

    Default

    I think what you maybe after is under Address.aspx in the root folder. But be careful if you change this, and make a backup of the original file.

    Regarding the state.countrywithoutstate this sounds like it will be in your String Resources which can be found in Admin and changed to a more appropriate value.

  3. #3
    Carzy is offline Junior Member
    Join Date
    Oct 2011
    Posts
    4

    Default

    Hey, thanks for the reply...

    I've tried to swap around first and last name in Address.aspx.cs but it doesn't do anything:

    Code:
                    if (ctrlNewAddress != null)
                    {
                        anyAddress.CustomerID = ThisCustomer.CustomerID;
                        anyAddress.NickName = ctrlNewAddress.NickName;
                        anyAddress.LastName = ctrlNewAddress.LastName;
                        anyAddress.FirstName = ctrlNewAddress.FirstName;
                        
                        anyAddress.Company = ctrlNewAddress.Company;
                        anyAddress.Address1 = ctrlNewAddress.Address1;
                        anyAddress.Address2 = ctrlNewAddress.Address2;
                        anyAddress.Suite = ctrlNewAddress.Suite;
                        anyAddress.City = ctrlNewAddress.City;
                        anyAddress.State = ctrlNewAddress.State;
                        anyAddress.Zip = ctrlNewAddress.ZipCode;
                        anyAddress.Country = ctrlNewAddress.Country;
                        anyAddress.Phone = ctrlNewAddress.PhoneNumber;
                        anyAddress.ResidenceType = (ResidenceTypes)addressType;
    
                        anyAddress.InsertDB();
    Regarding state.countrywithoutstate... it doesn't exist as a string resource in the admin panel as far as I can see?

  4. #4
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    There is a string in the strings.en-US.xls string resource spreadsheet called state.countrywithoutstates - note the 's' on the end. Maybe the string resource file hasn't been uploaded properly. Or you could just add it yourself and then reset the cache.

    Positioning of the address fields is done in the address control which can be found in ASPDNSFControls\AddressControl.cs - look for the CreateChildControls() method near the bottom of the file.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!