MYS: add promotion profile to restore as previous profile after promo ends
This commit is contained in:
parent
1687d8e612
commit
26a15c104c
5 changed files with 278 additions and 201 deletions
|
|
@ -12,22 +12,60 @@ DEBUGVAR ProYuzu250Enable
|
|||
If ProReducedPriceEnable = 1 Then
|
||||
|
||||
Else
|
||||
DEBUGVAR "Case pro reduce end"
|
||||
; case-pro-reduce-end
|
||||
If ProYuzu250Enable = 1 Then
|
||||
DEBUGVAR "Pro yuzu ongoing"
|
||||
; concat-profile
|
||||
If HasProYuzu250Concat = "true" Then
|
||||
|
||||
DEBUGVAR "Pro yuzu concat"
|
||||
Else
|
||||
|
||||
|
||||
If IsProfileReduce = "true" Then
|
||||
|
||||
DEBUGVAR "Pro reduce was set but disabled from trick"
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
If XMLProfilePreEvent = "" Then
|
||||
DEBUGVAR "Get PreEvent Empty"
|
||||
Var XMLProfile = "General"
|
||||
Else
|
||||
DEBUGVAR "Restore profile by pre-event, also concat Yuzu"
|
||||
DEBUGVAR XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoYuzu250"
|
||||
EndIf
|
||||
|
||||
Else
|
||||
DEBUGVAR "No pro reduce, concat pro yuzu"
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
|
||||
Var XMLProfile = XMLProfile + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoYuzu250"
|
||||
EndIf
|
||||
EndIf
|
||||
Else
|
||||
If IsProfileReduce = "true" Then
|
||||
DEBUGVAR "No yuzu but set pro reduce"
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
If XMLProfilePreEvent = "" Then
|
||||
DEBUGVAR "PreEvent empty, set General"
|
||||
Var XMLProfile = "General"
|
||||
Else
|
||||
DEBUGVAR "Restore profile by pre-event"
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
Else
|
||||
|
||||
If HasProYuzu250Concat = "true" Then
|
||||
CacheVarStr "get" XMLProfilePreEvent
|
||||
Var XMLProfile = XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
DEBUGVAR "Store profile pre event"
|
||||
DEBUGVAR XMLProfilePreEvent
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue