-
Notifications
You must be signed in to change notification settings - Fork 0
/
PromoEvents.cs
95 lines (79 loc) · 2.55 KB
/
PromoEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNetNuke.Entities.Portals;
using NBrightDNN;
using Nevoweb.DNN.NBrightBuy.Components;
namespace Nevoweb.DNN.NBrightBuy.Providers.QtyPromo
{
public class PromoEvents : Components.Interfaces.EventInterface
{
public override NBrightInfo ValidateCartBefore(NBrightInfo cartInfo)
{
return cartInfo;
}
public override NBrightInfo ValidateCartAfter(NBrightInfo cartInfo)
{
return cartInfo;
}
public override NBrightInfo ValidateCartItemBefore(NBrightInfo cartItemInfo)
{
cartItemInfo = PromoUtils.CalcQtyPromo(PortalSettings.Current.PortalId, cartItemInfo);
return cartItemInfo;
}
public override NBrightInfo ValidateCartItemAfter(NBrightInfo cartItemInfo)
{
return cartItemInfo;
}
public override NBrightInfo AfterCartSave(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterCategorySave(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterProductSave(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterSavePurchaseData(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo BeforeOrderStatusChange(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterOrderStatusChange(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo BeforePaymentOK(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterPaymentOK(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo BeforePaymentFail(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo AfterPaymentFail(NBrightInfo nbrightInfo)
{
return nbrightInfo;
}
public override NBrightInfo BeforeSendEmail(NBrightInfo nbrightInfo, string emailsubjectrexkey)
{
return nbrightInfo;
}
public override NBrightInfo AfterSendEmail(NBrightInfo nbrightInfo, string emailsubjectrexkey)
{
return nbrightInfo;
}
}
}