Dynamicweb 8 Documentation
Shipping Class
Members  Example 

Represents information about a shipping method
Object Model
Shipping ClassCountryRelation ClassCountryRelationCollection ClassCountryRelation Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class Shipping 
[SerializableAttribute()] 
public class Shipping 
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
   Dynamicweb.eCommerce.Orders.Shipping

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

Shipping Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback