THA: Added Americano promotion & extend Taiwanese promotion

This commit is contained in:
Kenta420 2025-06-17 18:09:03 +07:00
parent 3215a5d61f
commit 6a2a3c9158
124 changed files with 48313 additions and 840 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,28 @@
[
{
"name": "americano",
"template": "/event/promotion_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"normal_thai": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"press_eng": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"press_thai": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"disable_eng": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"disable_thai": "ROOT/taobin_project/image/event/americano/americano_banner.png",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_americano.xml"
}
},
{
"name": "taiwanese_tea",
"template": "/event/promotion_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"normal_thai": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"press_eng": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"press_thai": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"disable_eng": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"disable_thai": "ROOT/taobin_project/image/event/taiwanese_tea/taiwanese_tea_banner.png",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_taiwanese_tea.xml"
}
}
]

View file

@ -1 +1 @@
/event/promotion_happy_trios.xml
/event/promotion_americano.xml

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
Open "ROOT/taobin_project/xml/page_catalog_group_pro_happy_trios.xml"
Open "ROOT/taobin_project/xml/page_catalog_group_pro_americano.xml"

View file

@ -45,7 +45,6 @@
<FrameScroll>
<Max> 12 </Max>
<X> 10 </X>
@ -19168,7 +19167,6 @@ Limenade Soda" </Value>
</Button>
;include="ROOT/taobin_project/inc/button_remove_cup.inc"
</Popup>

View file

@ -1,47 +1,15 @@
<Button>
<X> 42 </X>
<Y> 518 </Y>
<State> BigButtonEnable </State>
<Filename>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</Filename>
<FilenamePress>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</FilenamePress>
<FilenameDisable>
eval(
If show_eng = "true" Then
Var return = ###normal_eng
Else
Var return = ###normal_thai
EndIf
)
</FilenameDisable>
<Filename> ###normal_thai </Filename>
<FilenamePress> ###press_thai </FilenamePress>
<FilenameDisable> ###disable_thai </FilenameDisable>
<EventOnClick>
###EventOnClick
</EventOnClick>
</Button>
<EventUnitTest1>
Var BigButtonEnable = "Enable"
Refresh
</EventUnitTest1>
<EventUnitTest2>
Var BigButtonEnable = "Invisible"
Refresh
</EventUnitTest2>

View file

@ -8,6 +8,7 @@ DEBUGVAR SchoolOvaltinePro
DEBUGVAR AppleFarmFestivalPro
DEBUGVAR HappyTriosPro
DEBUGVAR TaiwaneseTeaPro
DEBUGVAR AmericanoPro
Var PromotionState1 = "Invisible"
Var PromotionState2 = "Invisible"
@ -65,6 +66,16 @@ Else
EndIf
EndIf
If AmericanoPro = 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_americano.xml"
Var PromotionState1 = "Enable"
If TaiwaneseTeaPro = 1 Then
Var PromotionState2 = "Enable"
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_americano_and_taiwanese_tea.xml"
EndIf
EndIf
EndIf
DEBUGVAR OpenFromMulti

View file

@ -92,9 +92,12 @@ Var HappyTriosPro = 0
; School Ovaltine, 15 - 30 June
Var SchoolOvaltinePro = 0
; Taiwanese Tea, 16 - 30 June
; Taiwanese Tea, 16 - 31 July
Var TaiwaneseTeaPro = 0
; Americano, 1 - 31 July
Var AmericanoPro = 0
Var NewCollectPoint = 1
Var PaymentCodeShouldCollectPromotionPoint = 0
@ -173,6 +176,13 @@ If SystemDateMonthInt = 6 Then
EndIf
EndIf
If SystemDateMonthInt = 7 Then
Var AmericanoPro = 1
Var TaiwaneseTeaPro = 1
EndIf
Var JemilaToppingFlag = 1
If SystemDateDayOfWeek = "Wednesday" Then