Dynamicweb.eCommerce.Orders Namespace > OrderState Class : getOrderstates Method |
'Declaration
Public Shared Function getOrderstates( _ ByVal stateID As String _ ) As OrderStateCollection
public static OrderStateCollection getOrderstates( string stateID )
class MyPage : System.Web.UI.Page { public void RenderOrderState( Rendering.Template t, Order order ) { OrderStateCollection orderStates = OrderState.getOrderstates( order.StateID ); if( orderStates != null ) { if( orderStates.Count > 0 ) { template.SetTag("Ecom:Order:Orderstate.Name", orderStates.Item(0).Name); template.SetTag("Ecom:Order:Orderstate.Description", orderStates.Item(0).Description); } } } }
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