Dynamicweb 8 Documentation
getShippingmethods(String,String,Boolean) Method
Example 

The country code.
The shipping methods ID, separated by comma.
if set to true [join country relations].
Gets the shipping methods with the suitable country code and shipping method ID, if joinCountryRelations parameter is true. Otherwise gets all shipping methods.
Syntax
'Declaration
 
Public Overloads Shared Function getShippingmethods( _ 
   ByVal code2 As String, _ 
   ByVal methods As String, _ 
   ByVal joinCountryRelations As Boolean _ 
) As ShippingCollection
public static ShippingCollection getShippingmethods( 
   string code2,
   string methods,
   bool joinCountryRelations 
)

Parameters

code2
The country code.
methods
The shipping methods ID, separated by comma.
joinCountryRelations
if set to true [join country relations].
Example
public String GetShippingMethodsForOrder(Order order) 
{
    ShippingCollection dwShip = Shipping.getShippingmethods( order.FeeCountryCode("SHIP"), order.ShippingMethodID, true );

    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
Overload List

Send Feedback