Dynamicweb 8 Documentation
getShippingmethodsByRegion Method
Example 

The country code.
The region/state code.
Gets the shipping methods with the suitable country code and region code.
Syntax
'Declaration
 
Public Shared Function getShippingmethodsByRegion( _ 
   ByVal code2 As String, _ 
   ByVal regionCode As String _ 
) As ShippingCollection
public static ShippingCollection getShippingmethodsByRegion( 
   string code2,
   string regionCode 
)

Parameters

code2
The country code.
regionCode
The region/state code.
Example
public String GetShippingMethodsForOrder(Order order) 
{
    ShippingCollection dwShip = Shipping.getShippingmethodsByRegion( order.FeeCountryCode("SHIP"), order.FeeRegionCode("SHIP", order.FeeCountryCode("SHIP")) );

    return GetShippingData( dwShip );
 }
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 Class
Shipping Members

Send Feedback