Dynamicweb 8 Documentation
eCommerce.Order Class
Members  Example 

Provides notification names for order.
Syntax
'Declaration
 
Public NotInheritable Class eCommerce.Order 
public sealed class eCommerce.Order 
Remarks
The passed NotificationArgs is eCommerce.Order.GatewayStatusChangedArgs
Example
Overriding the device detection of DynamicwebOverriding the device detection of Dynamicweb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dynamicweb.Examples.CSharp.Notifications.eCommerce.Order
{
    /// <summary>
    /// Order.GatewayStatusChanged
    /// </summary>
    [Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChanged)]
    public class EcomOrderGatewayStatusChangedObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs))
                return;
            Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs item = (Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs)args;
            //Todo: insert code here
        }
    }
}
Imports Dynamicweb

Namespace Dynamicweb.Examples.Vb.Notifications.eCommerce
    <Global.Dynamicweb.Extensibility.Subscribe(Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChanged)> _
    Public Class EcomOrderGatewayStatusChangedObserver
        Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber

        Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs)
            If args Is Nothing OrElse Not (TypeOf args Is Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs) Then
                Return
            End If

            Dim item As Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs = DirectCast(args, Global.Dynamicweb.Notifications.eCommerce.Order.GatewayStatusChangedArgs)
            'TODO: Add code here
        End Sub

    End Class
End Namespace
Inheritance Hierarchy

System.Object
   Dynamicweb.Notifications.eCommerce.Order

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

eCommerce.Order Members
Dynamicweb.Notifications Namespace

Send Feedback