MYS: add promotion Yuzu price 250
|
|
@ -1,6 +1,6 @@
|
|||
normal_eng=ROOT/taobin_project/inter/mys/image/event/bn_MerdekaPromotionPepsi1.png
|
||||
normal_thai=ROOT/taobin_project/inter/mys/image/event/bn_MerdekaPromotionPepsi1.png
|
||||
press_eng=ROOT/taobin_project/inter/mys/image/event/bn_MerdekaPromotionPepsi1.png
|
||||
press_thai=ROOT/taobin_project/inter/mys/image/event/bn_MerdekaPromotionPepsi1.png
|
||||
disable_eng=ROOT/taobin_project/inter/mys/image/event/bd_MerdekaPromotionPepsi1.png
|
||||
disable_thai=ROOT/taobin_project/inter/mys/image/event/bd_MerdekaPromotionPepsi1.png
|
||||
normal_eng=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
normal_thai=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
press_eng=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
press_thai=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
disable_eng=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
disable_thai=ROOT/taobin_project/inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
|
||||
|
|
|
|||
BIN
inter/mys/image/event/pro_yuzu_250/pro_yuzu_250.png
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
inter/mys/image/page_drink_disable_n2/bn_Yuzu_Tea.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 9.2 KiB |
BIN
inter/mys/image/page_drink_disable_n2/bn_Yuzu_mint.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 15 KiB |
BIN
inter/mys/image/page_drink_disable_n2/bn_iced_yuzu.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
inter/mys/image/page_drink_n/bn_Yuzu_Tea.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 9.3 KiB |
BIN
inter/mys/image/page_drink_n/bn_Yuzu_mint.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 16 KiB |
BIN
inter/mys/image/page_drink_n/bn_iced_yuzu.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
inter/mys/image/page_drink_picture2_n/bn_Yuzu_Tea.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 18 KiB |
BIN
inter/mys/image/page_drink_picture2_n/bn_Yuzu_mint.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 31 KiB |
BIN
inter/mys/image/page_drink_picture2_n/bn_iced_yuzu.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
inter/mys/image/page_drink_press_n/bn_Yuzu_Tea.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 9.3 KiB |
BIN
inter/mys/image/page_drink_press_n/bn_Yuzu_mint.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 16 KiB |
BIN
inter/mys/image/page_drink_press_n/bn_iced_yuzu.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
33
inter/mys/xml/event/event_profile.ev
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/xml/event/tricker.ev"
|
||||
|
||||
Var XMLProfilePreEvent = XMLProfile
|
||||
DEBUGVAR XMLProfile
|
||||
STRCONTAIN "PromoYuzu250" XMLProfile HasProYuzu250Concat
|
||||
STRCONTAIN "PromoReduced" XMLProfile IsProfileReduce
|
||||
|
||||
DEBUGVAR HasProYuzu250Concat
|
||||
DEBUGVAR ProReducedPriceEnable
|
||||
DEBUGVAR ProYuzu250Enable
|
||||
|
||||
If ProReducedPriceEnable = 1 Then
|
||||
|
||||
Else
|
||||
; case-pro-reduce-end
|
||||
If ProYuzu250Enable = 1 Then
|
||||
; concat-profile
|
||||
If HasProYuzu250Concat = "true" Then
|
||||
|
||||
Else
|
||||
|
||||
If IsProfileReduce = "true" Then
|
||||
|
||||
Else
|
||||
CacheVarStr "put" XMLProfilePreEvent
|
||||
|
||||
Var XMLProfile = XMLProfile + "-"
|
||||
Var XMLProfile = XMLProfile + "PromoYuzu250"
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
EndIf
|
||||
|
|
@ -1 +1 @@
|
|||
/event/promotion_pepsi_099.lxml
|
||||
/event/promotion_yuzu_250.lxml
|
||||
|
|
|
|||
|
|
@ -1,84 +1 @@
|
|||
Var PictureDrink = "ROOT/taobin_project/image/page_drink_picture2_n/" + "bn_iced_pepsi.png"
|
||||
Var OpenFromXML = CurrentXMLFileName2
|
||||
Var PriceD1 = $-.Price
|
||||
Var PriceD2 = 99
|
||||
Var PriceD3 = $12-05-03-0007.Price
|
||||
Var PD_CODE1 = "##-##-##-####"
|
||||
Var PD_CODE2 = "12-05-02-0007"
|
||||
Var PD_CODE3 = "12-05-03-0007"
|
||||
; begin lang
|
||||
Var aliasName[0] = "PEPSI"
|
||||
Var aliasDesc[0] = "Pepsi & Ice"
|
||||
Var aliasName[1] = "เป๊ปซี่น้ำแข็ง"
|
||||
Var aliasDesc[1] = "เป๊ปซี่"
|
||||
Var aliasName[2] = "-"
|
||||
Var aliasDesc[2] = "-"
|
||||
Var aliasName[3] = "-"
|
||||
Var aliasDesc[3] = "-"
|
||||
Var aliasName[4] = "PEPSI"
|
||||
Var aliasDesc[4] = "Pepsi, Ais"
|
||||
Var NameLang[0][0] = ""
|
||||
Var NameLang[0][1] = ""
|
||||
Var NameLang[0][2] = ""
|
||||
Var NameLang[0][3] = ""
|
||||
Var NameLang[0][4] = ""
|
||||
Var DescLang[0][0] = ""
|
||||
Var DescLang[0][1] = ""
|
||||
Var DescLang[0][2] = ""
|
||||
Var DescLang[0][3] = ""
|
||||
Var DescLang[0][4] = ""
|
||||
Var NameLang[1][0] = "PEPSI"
|
||||
Var NameLang[1][1] = "เป๊ปซี่น้ำแข็ง"
|
||||
Var NameLang[1][2] = ""
|
||||
Var NameLang[1][3] = ""
|
||||
Var NameLang[1][4] = "PEPSI"
|
||||
Var DescLang[1][0] = "Pepsi, Ice"
|
||||
Var DescLang[1][1] = "เป๊ปซี่ และน้ำแข็ง"
|
||||
Var DescLang[1][2] = ""
|
||||
Var DescLang[1][3] = ""
|
||||
Var DescLang[1][4] = "Pepsi, Ais"
|
||||
Var NameLang[2][0] = "TAO SLUSHIE"
|
||||
Var NameLang[2][1] = "เต่าสลัชชี่"
|
||||
Var NameLang[2][2] = ""
|
||||
Var NameLang[2][3] = ""
|
||||
Var NameLang[2][4] = "TAO SLUSHIE"
|
||||
Var DescLang[2][0] = "Pepsi, Ice"
|
||||
Var DescLang[2][1] = "เป๊ปซี่ และน้ำแข็ง"
|
||||
Var DescLang[2][2] = ""
|
||||
Var DescLang[2][3] = ""
|
||||
Var DescLang[2][4] = "Pepsi, Ais"
|
||||
; end lang
|
||||
Var PD_STAGE_1 = "Disable2"
|
||||
Var PD_STAGE_2 = $12-05-02-0007.Button
|
||||
Var PD_STAGE_3 = $12-05-03-0007.Button
|
||||
Var SelectCountDrinkType = 0
|
||||
Var DefaultDrinkType = 0
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 1
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 2
|
||||
EndIf
|
||||
If PD_STAGE_3 = "Enable" Then
|
||||
Var SelectCountDrinkType = SelectCountDrinkType + 1
|
||||
Var DefaultDrinkType = 3
|
||||
EndIf
|
||||
If PD_STAGE_2 = "Enable" Then
|
||||
Topping "Load" "12-05-02-0007"
|
||||
Else
|
||||
If PD_STAGE_1 = "Enable" Then
|
||||
Topping "Load" "-"
|
||||
Else
|
||||
Topping "Load" "12-05-03-0007"
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
DEBUGVAR PD_STAGE_1
|
||||
DEBUGVAR PD_STAGE_2
|
||||
DEBUGVAR PD_STAGE_3
|
||||
Var SelectDrinkType = 0
|
||||
|
||||
|
||||
Open "ROOT/taobin_project/xml/page_topping_select6.lxml"
|
||||
Open "ROOT/taobin_project/inter/mys/xml/page_catalog_group_pro_yuzu_250.lxml"
|
||||
|
|
|
|||
12430
inter/mys/xml/event/promotion_yuzu_250.lxml
Normal file
|
|
@ -5,36 +5,13 @@
|
|||
DEBUGVAR FruityRayaEnable
|
||||
DEBUGVAR ProThaiTeaEnable
|
||||
DEBUGVAR ProYuzuEnable
|
||||
|
||||
Var CountEnablePromotion = 0
|
||||
Var PromotionState1 = "Invisible"
|
||||
Var PromotionState2 = "Invisible"
|
||||
|
||||
If ProThaiTeaEnable = 1 Then
|
||||
Var PromotionState1 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
If ProYuzuEnable = 1 Then
|
||||
Var PromotionState2 = "Enable"
|
||||
Var CountEnablePromotion = CountEnablePromotion + 1
|
||||
EndIf
|
||||
|
||||
DEBUGVAR CountEnablePromotion
|
||||
DEBUGVAR ProYuzu250Enable
|
||||
|
||||
If OpenFromPageBoard = 1 Then
|
||||
|
||||
; has-ongoing-pro
|
||||
If CountEnablePromotion >= 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
If CountEnablePromotion = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_thai_tea.lxml"
|
||||
EndIf
|
||||
|
||||
If CountEnablePromotion = 2 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/double_promotion_thai_tea_and_yuzu.lxml"
|
||||
EndIf
|
||||
If ProYuzu250Enable = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_yuzu_250.lxml"
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
|
|
@ -43,16 +20,8 @@ If OpenFromPageBoard = 1 Then
|
|||
Else
|
||||
|
||||
; has-ongoing-pro
|
||||
If CountEnablePromotion >= 1 Then
|
||||
Var BigButtonEnable = "Enable"
|
||||
|
||||
If CountEnablePromotion = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_thai_tea.lxml"
|
||||
EndIf
|
||||
|
||||
If CountEnablePromotion = 2 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/double_promotion_thai_tea_and_yuzu.lxml"
|
||||
EndIf
|
||||
If ProYuzu250Enable = 1 Then
|
||||
OpenInst 2 "ROOT/taobin_project/inter/mys/xml/event/promotion_yuzu_250.lxml"
|
||||
|
||||
Var OpenFromPageBoard = 0
|
||||
Else
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ Var FromProThaiTea = 0
|
|||
Var ProYuzuEnable = 0
|
||||
Var FromProYuzu = 0
|
||||
|
||||
; Yuzu Promo
|
||||
Var ProYuzu250Enable = 0
|
||||
Var FromProYuzu250 = 0
|
||||
|
||||
|
||||
; Pro free oreo topping
|
||||
Var PromotionOreoToppingFreeEnable = 0
|
||||
|
|
@ -40,37 +44,6 @@ Var EnablePayLaterMode = 0
|
|||
; Slide show Video
|
||||
Var UseSlideShowVideo = 0
|
||||
|
||||
If SystemDateMonthInt = 6 Then
|
||||
If SystemDateDayInt >= 15 Then
|
||||
Var ProThaiTeaEnable = 1
|
||||
Else
|
||||
Var ProThaiTeaEnable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 7 Then
|
||||
Var ProThaiTeaEnable = 1
|
||||
|
||||
If SystemDateDayInt >= 15 Then
|
||||
Var ProYuzuEnable = 1
|
||||
Else
|
||||
Var ProYuzuEnable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 8 Then
|
||||
If SystemDateDayInt < 31 Then
|
||||
Var ProThaiTeaEnable = 1
|
||||
Var ProYuzuEnable = 1
|
||||
Else
|
||||
Var ProThaiTeaEnable = 0
|
||||
Var ProYuzuEnable = 0
|
||||
|
||||
Var PromotionOreoToppingFreeEnable = 1
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 9 Then
|
||||
If SystemDateDayInt < 17 Then
|
||||
Var PromotionOreoToppingFreeEnable = 1
|
||||
|
|
@ -86,16 +59,29 @@ If SystemDateMonthInt = 10 Then
|
|||
If SetProReduceByBO = 1 Then
|
||||
Var ProReducedPriceEnable = 1
|
||||
EndIf
|
||||
|
||||
Var ProYuzu250Enable = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 11 Then
|
||||
If SetProReduceByBO = 1 Then
|
||||
Var ProReducedPriceEnable = 1
|
||||
EndIf
|
||||
|
||||
Var ProYuzu250Enable = 1
|
||||
EndIf
|
||||
|
||||
If SystemDateMonthInt = 12 Then
|
||||
Var ProYuzu250Enable = 1
|
||||
EndIf
|
||||
|
||||
|
||||
If SystemDateMonthInt = 1 Then
|
||||
If SystemDateDayInt < 16 Then
|
||||
Var ProYuzu250Enable = 1
|
||||
Else
|
||||
Var ProYuzu250Enable = 0
|
||||
EndIf
|
||||
EndIf
|
||||
|
||||
If BoxID = 177746 Then
|
||||
Var ProThaiTeaEnable = 1
|
||||
|
|
@ -107,6 +93,9 @@ If BoxID = 177746 Then
|
|||
;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 UseSlideShowVideo = 0
|
||||
|
||||
Var ProReducedPriceEnable = 0
|
||||
Var ProYuzu250Enable = 1
|
||||
EndIf
|
||||
|
||||
If BoxID = 210037 Then
|
||||
|
|
|
|||
|
|
@ -189,9 +189,12 @@
|
|||
if "thai_tea" in current_file_name:
|
||||
out_xml( '\t\tVar FromProThaiTea = 1 \r\n')
|
||||
|
||||
if "yuzu" in current_file_name:
|
||||
if "yuzu" in current_file_name and "250" not in current_file_name:
|
||||
out_xml( '\t\tVar FromProYuzu = 1 \r\n')
|
||||
|
||||
if "yuzu_250" in current_file_name:
|
||||
out_xml( '\t\tVar FromProYuzu250 = 1 \r\n')
|
||||
|
||||
|
||||
out_xml( '\t\t\r\n')
|
||||
out_xml( '\t\t\r\n')
|
||||
|
|
|
|||
2552
inter/mys/xml/page_catalog_group_pro_yuzu_250.lxml
Normal file
46
inter/mys/xml/page_catalog_group_pro_yuzu_250.skt
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?hurr
|
||||
#include=menu_head.py
|
||||
?>
|
||||
|
||||
<Popup>
|
||||
<Cache> "Enable" </Cache>
|
||||
<Width> 1080 </Width>
|
||||
<Height> 1920 </Height>
|
||||
;<Background> "0xeae6e1" </Background>
|
||||
<Volume> SoundVolume </Volume>
|
||||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
?>
|
||||
|
||||
Var FromProYuzu250 = 0
|
||||
Var Timeout = 0
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new_menu.xml
|
||||
?>
|
||||
|
||||
</EventOpen>
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_catalog_new.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen_v2.py
|
||||
?>
|
||||
<?hurr
|
||||
#include=menu_new_layout_gen.py
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</Popup>
|
||||
|
|
@ -127,15 +127,12 @@
|
|||
|
||||
DEBUGVAR PepweenCollectPoint
|
||||
|
||||
DEBUGVAR ProBadValentineEnable
|
||||
DEBUGVAR FromBadValentinePro
|
||||
DEBUGVAR LipitPro
|
||||
DEBUGVAR FromLipitPro
|
||||
DEBUGVAR FruityRayaEnable
|
||||
DEBUGVAR FromFruityRaya
|
||||
DEBUGVAR ProThaiTeaEnable
|
||||
DEBUGVAR FromProThaiTea
|
||||
DEBUGVAR FromProYuzu
|
||||
DEBUGVAR FromProYuzu250
|
||||
|
||||
If Seeker.TNumberTaobinCredit = "" Then
|
||||
|
||||
|
|
|
|||
|
|
@ -704,6 +704,10 @@
|
|||
If BoxID = 200002 Then
|
||||
Var UseSlideShowVideo = 1
|
||||
EndIf
|
||||
|
||||
TRY "/mnt/sdcard/coffeevending/taobin_project/inter/mys/xml/event/event_profile.ev"
|
||||
|
||||
|
||||
OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
|
||||
|
||||
EndIf
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
Var FromFruityRaya = 0
|
||||
Var FromProThaiTea = 0
|
||||
Var FromProYuzu = 0
|
||||
Var FromProYuzu250 = 0
|
||||
EndIf
|
||||
|
||||
If UsePepsiTheme = 1 Then
|
||||
|
|
|
|||