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?
Zone Ordering on Shipping Method page
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Zone Ordering on Shipping Method page
This would probably do it- adding the zones.Sort() line.
Here is a link to an example:
http://www.dotnetperls.com/sort
Code: Select all
foreach (ShipMethodShipZone zoneAssn in method.ShipMethodShipZones)
{
zones.Add(zoneAssn.ShipZone.Name);
}
zones.Sort();
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
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