Dynamicweb 8 Documentation
ShippingCollection Class
Members  Example 

Represents a collection of shipping objects
Object Model
ShippingCollection ClassShipping Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    public String GetShippingData() 
    {
        System.Text.StringBuilder shipStr = new System.Text.StringBuilder();

        shipStr.Append("<table>");

        ShippingCollection ships = Shipping.getShippingmethods();
        foreach( Shipping ship in ships )
        {
            String checkedStr = "";
 
            if( ship.CountryRelation(countryID).IsDefault )
                checkedStr = "CHECKED";
            else
                checkedStr = "";
 
	           shipStr.Append("<tr>");
            shipStr.Append("<td><input type=""radio"" value=""" + ship.ID + """ " + checkedStr + ">" + ship.Name + " - " + ship.Description + "</td>");
            shipStr.Append("</tr>");
        }

        shipStr.Append("</table>")

        return shipStr.ToString();
    }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Orders.ShippingCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ShippingCollection Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback