THAI: Add Assets Nam Hom Coconut pro

This commit is contained in:
Kenta420 2024-05-13 11:06:29 +07:00
parent f2820dfe82
commit 69d72cb0aa
76 changed files with 77 additions and 20 deletions

View file

@ -1,6 +1,6 @@
normal_eng=ROOT/taobin_project/image/event/tea_time/tea_time_th.png normal_eng=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png
normal_thai=ROOT/taobin_project/image/event/tea_time/tea_time_th.png normal_thai=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png
press_eng=ROOT/taobin_project/image/event/tea_time/tea_time_th.png press_eng=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png
press_thai=ROOT/taobin_project/image/event/tea_time/tea_time_th.png press_thai=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png
disable_eng=ROOT/taobin_project/image/event/tea_time/tea_time_th.png disable_eng=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png
disable_thai=ROOT/taobin_project/image/event/tea_time/tea_time_th.png disable_thai=ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,30 @@
[
{
"name": "nam_hom_coconut",
"template": "/event/promotion_video_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png",
"normal_thai": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png",
"press_eng": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png",
"press_thai": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png",
"disable_eng": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.png",
"disable_thai": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.png",
"video_eng": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.mp4",
"video_thai": "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.mp4",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_nam_hom_coconut.xml"
}
},
{
"name": "wednesday_melon",
"template": "/event/promotion_template.inc",
"config": {
"normal_eng": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_EN.png",
"normal_thai": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_TH.png",
"press_eng": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_EN.png",
"press_thai": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_TH.png",
"disable_eng": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_EN.png",
"disable_thai": "ROOT/taobin_project/image/event/wednesday_melon/wednesday_melon_TH.png",
"event_on_click": "ROOT/taobin_project/xml/page_catalog_group_pro_wednesday_melon.xml"
}
}
]

View file

@ -1 +1 @@
/event/promotion_tea_time.xml /event/promotion_nam_hom_coconut.xml

View file

@ -33,7 +33,7 @@
</FilenameDisable> </FilenameDisable>
<EventOnClick> <EventOnClick>
Open "ROOT/taobin_project/xml/page_catalog_group_pro_tea_time.xml" Open "ROOT/taobin_project/xml/page_catalog_group_pro_nam_hom_coconut.xml"
</EventOnClick> </EventOnClick>
@ -53,7 +53,7 @@
EndIf EndIf
) )
</State> </State>
<Filename> "ROOT/taobin_project/image/event/tea_time/tea_time_th.mp4" </Filename> <Filename> "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_th.mp4" </Filename>
</Video> </Video>
<Video> <Video>
@ -71,7 +71,7 @@
) )
</State> </State>
<Loop> "true" </Loop> <Loop> "true" </Loop>
<Filename> "ROOT/taobin_project/image/event/tea_time/tea_time_en.mp4" </Filename> <Filename> "ROOT/taobin_project/image/event/nam_hom_coconut/nam_hom_coconut_en.mp4" </Filename>
</Video> </Video>
</Button> </Button>

View file

@ -12,6 +12,7 @@ DEBUGVAR EnergyDrinkEnable
DEBUGVAR EnergyDrink1BathPro DEBUGVAR EnergyDrink1BathPro
DEBUGVAR CoffeeDrink1BathPro DEBUGVAR CoffeeDrink1BathPro
DEBUGVAR WednesdayMelonPro DEBUGVAR WednesdayMelonPro
DEBUGVAR NamHomCoconutPro
Var PromotionState1 = "Invisible" Var PromotionState1 = "Invisible"
Var PromotionState2 = "Invisible" Var PromotionState2 = "Invisible"
@ -38,24 +39,19 @@ Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml" Var FileRecommendToOpen = "ROOT/taobin_project/xml/page_catalog_group_recommend.xml"
; zone promote ; zone promote
If TeaTimePro = 1 Then If NamHomCoconutPro = 1 Then
Var PromotionState1 = "Enable" Var PromotionState1 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1 Var CountEnablePromotion = CountEnablePromotion + 1
If EnergyDrink1BathPro = 1 Then If WednesdayMelonPro = 1 Then
Var PromotionState2 = "Enable" Var PromotionState2 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1 Var CountEnablePromotion = CountEnablePromotion + 1
EndIf EndIf
If CoffeeDrink1BathPro = 1 Then
Var PromotionState3 = "Enable"
Var CountEnablePromotion = CountEnablePromotion + 1
EndIf
If CountEnablePromotion > 1 Then If CountEnablePromotion > 1 Then
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/triple_promotion_tea_time_and_energy_drink_1_bath_and_coffee_drink_1_bath.xml" Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/double_promotion_nam_hom_coconut_and_wednesday_melon.xml"
Else Else
Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_tea_time.xml" Var FileRecommendToOpen = "ROOT/taobin_project/xml/event/promotion_nam_hom_coconut.xml"
EndIf EndIf
Else Else
If EnergyDrink1BathPro = 1 Then If EnergyDrink1BathPro = 1 Then

View file

@ -103,6 +103,10 @@ Var FromCoffeeDrink1BathPro = 0
Var WednesdayMelonPro = 0 Var WednesdayMelonPro = 0
Var FromWednesdayMelonPro = 0 Var FromWednesdayMelonPro = 0
; Enable Nam Hom Coconut, 3 - 21 June
Var NamHomCoconutPro = 0
Var FromNamHomCoconutPro = 0
Var NewCollectPoint = 1 Var NewCollectPoint = 1
Var NewFlowPaymentCode = 0 Var NewFlowPaymentCode = 0
@ -283,6 +287,13 @@ If SystemDateMonthInt = 5 Then
EndIf EndIf
If SystemDateMonthInt = 6 Then If SystemDateMonthInt = 6 Then
If SystemDateDayInt >= 3 Then
If SystemDateDayInt <= 21 Then
Var NamHomCoconutPro = 1
EndIf
EndIf
If SystemDateDayInt = 5 Then If SystemDateDayInt = 5 Then
Var WednesdayMelonPro = 1 Var WednesdayMelonPro = 1
EndIf EndIf
@ -290,6 +301,7 @@ If SystemDateMonthInt = 6 Then
If SystemDateDayInt = 12 Then If SystemDateDayInt = 12 Then
Var WednesdayMelonPro = 1 Var WednesdayMelonPro = 1
EndIf EndIf
EndIf EndIf
@ -423,12 +435,18 @@ If taobin_nopro = "true" Then
Var LipitPro = 0 Var LipitPro = 0
Var WednesdayMelonPro = 0 Var WednesdayMelonPro = 0
Var NamHomCoconutPro = 0
Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00" Var AdvertiseProfile = "00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00/00"
EndIf EndIf
If CoconutSyrupEnable = "true" Then
Else
Var NamHomCoconutPro = 0
EndIf
If MelonSyrupEnable = "true" Then If MelonSyrupEnable = "true" Then
Else Else

View file

@ -231,6 +231,11 @@
wednesday_melon_original_prices = {} wednesday_melon_original_prices = {}
wednesday_melon_fix_price = False wednesday_melon_fix_price = False
if current_file_name == "page_catalog_group_pro_nam_hom_coconut.skt":
from_nam_hom_coconut = True
else:
from_nam_hom_coconut = False
#print ("######################################################################################################") #print ("######################################################################################################")
idx_of_eng = 2 idx_of_eng = 2
out_xml('<FrameScroll> \r\n') out_xml('<FrameScroll> \r\n')
@ -549,6 +554,9 @@
if from_tea_time_pro: if from_tea_time_pro:
out_xml( '\t\tVar FromTeaTimePro = 1 \r\n') out_xml( '\t\tVar FromTeaTimePro = 1 \r\n')
if from_nam_hom_coconut:
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
out_xml( '\t\t\r\n') out_xml( '\t\t\r\n')
out_xml( '\t\t'+ button_add_string +'\r\n') out_xml( '\t\t'+ button_add_string +'\r\n')
@ -1141,6 +1149,9 @@
if wednesday_melon_fix_price: if wednesday_melon_fix_price:
out_xml( '\t\tVar FromWednesdayMelonPro = 1 \r\n') out_xml( '\t\tVar FromWednesdayMelonPro = 1 \r\n')
if from_nam_hom_coconut:
out_xml( '\t\tVar FromNamHomCoconutPro = 1 \r\n')
out_xml( '\t\t\r\n') out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n') out_xml( '\t\t\r\n')

View file

@ -201,6 +201,7 @@
STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable STRCONTAIN "1215" MaterialAvailable SugarZeroCalEnable
STRCONTAIN "1206" MaterialAvailable EnergyDrinkEnable STRCONTAIN "1206" MaterialAvailable EnergyDrinkEnable
STRCONTAIN "1216" MaterialAvailable CoconutSyrupEnable
;Var AppFastEnable = "false" ;Var AppFastEnable = "false"
If AppFastEnable = "true" Then If AppFastEnable = "true" Then

View file

@ -905,6 +905,7 @@
Var FromPowerUpPro = 0 Var FromPowerUpPro = 0
Var FromEnergyDrink1BathPro = 0 Var FromEnergyDrink1BathPro = 0
Var FromCoffeeDrink1BathPro = 0 Var FromCoffeeDrink1BathPro = 0
Var FromNamHomCoconutPro = 0
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml" OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/page_advert2.xml"