Zone Ordering on Shipping Method page

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jdarby
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Thu Sep 25, 2008 2:21 pm

Zone Ordering on Shipping Method page

Post by jdarby » Tue May 21, 2013 7:07 am

on /Shipping/Methods/Default.aspx in the admin area of the cart, I'd like to make a change in the order Zones are displayed for each shipping method.

The Zones column shows all of the zones associated with a shipping method. It is ordering them by their database ID. This results in them being out of alphabetical order (depending on the order the zones were created) and is a bit difficult to look at when comparing with another shipping method.

Is there a way I can have these display in alpha order instead of the database ID of the zone?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Zone Ordering on Shipping Method page

Post by jmestep » Wed May 22, 2013 5:29 am

This would probably do it- adding the zones.Sort() line.

Code: Select all

 foreach (ShipMethodShipZone zoneAssn in method.ShipMethodShipZones)
        {
            zones.Add(zoneAssn.ShipZone.Name);
        }
        zones.Sort();
Here is a link to an example:
http://www.dotnetperls.com/sort
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply