THAI: PRO

This commit is contained in:
Kenta420 2024-07-10 19:21:33 +07:00
parent 0c39850ad1
commit a14ee93cc7
158 changed files with 23855 additions and 132 deletions

View file

@ -242,6 +242,30 @@
else:
from_cocoa77 = False
cocoa77_fix_price = False
if current_file_name == "page_catalog_group_pro_passion_mint.skt":
passion_mint = True
passion_mint_fix_price = {
"12-01-02-0057": 29,
"12-21-02-0057": 29,
"12-01-02-0058": 19,
"12-21-02-0058": 19,
"12-02-03-0050": 39,
"12-01-02-0064": 29,
"12-21-02-0064": 29,
"12-03-02-0035": 29,
"12-03-03-0034": 39,
"12-03-03-0037": 29,
"12-05-02-0063": 19,
"12-05-02-0064": 19,
"12-05-02-0067": 19
}
else:
passion_mint = False
passion_mint_fix_price = {}
if current_file_name == "page_catalog_group_pro_7up_lucky_draw_x2.skt":
menu_white_color_catalog = True
#print ("######################################################################################################")
idx_of_eng = 2
@ -459,6 +483,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[6] + '.Price\r\n')
elif passion_mint:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(passion_mint_fix_price, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(passion_mint_fix_price, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(passion_mint_fix_price, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[5] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[6] + '.Price\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
@ -573,6 +604,10 @@
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
if passion_mint:
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
out_xml( '\t\t\r\n')
@ -712,6 +747,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[4])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -725,6 +762,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[4])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[4])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -783,6 +822,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[5])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -796,6 +837,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[5])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[5])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -870,6 +913,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[6])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -883,6 +928,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[6])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[6])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
out_xml( '\t</Text>\r\n')
@ -1086,6 +1133,13 @@
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[10] + '.Price\r\n')
elif passion_mint:
out_xml( '\t\tVar PriceD1 = ' + str(GetPrice(passion_mint_fix_price, pd_code_1)) + '\r\n')
out_xml( '\t\tVar PriceD2 = ' + str(GetPrice(passion_mint_fix_price, pd_code_2)) + '\r\n')
out_xml( '\t\tVar PriceD3 = ' + str(GetPrice(passion_mint_fix_price, pd_code_3)) + '\r\n')
out_xml( '\t\tVar OriginalPriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD2 = $' + spl[9] + '.Price\r\n')
out_xml( '\t\tVar OriginalPriceD3 = $' + spl[10] + '.Price\r\n')
else:
out_xml( '\t\tVar PriceD1 = $' + spl[8] + '.Price\r\n')
out_xml( '\t\tVar PriceD2 = $' + spl[9] + '.Price\r\n')
@ -1191,6 +1245,9 @@
if from_cocoa77:
out_xml( '\t\tVar FromCocoa77Pro = 1 \r\n')
if passion_mint:
out_xml( '\t\tVar FromPassionMintPro = 1 \r\n')
out_xml( '\t\t\r\n')
out_xml( '\t\t\r\n')
@ -1303,6 +1360,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[8] + '.Price - 7 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[8])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[8] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1310,6 +1369,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[8])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[8])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[8] + '.Price ) </Value>\r\n')
@ -1360,6 +1421,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[9] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[9])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[9] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1367,6 +1430,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[9])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[9])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[9] + '.Price ) </Value>\r\n')
@ -1416,6 +1481,8 @@
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(wednesday_melon_prices, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> StringFmt( $' +spl[10] + '.Price - 7, DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
elif passion_mint:
out_xml( '\t<Value> StringFmt( ' + str(GetPrice(passion_mint_fix_price, spl[10])) + ' , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
out_xml( '\t<Value> StringFmt( $' +spl[10] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
else:
@ -1423,6 +1490,8 @@
out_xml( '\t<Value> "฿' + str(GetPrice(wednesday_melon_prices, spl[10])) + '" </Value>\r\n')
elif cocoa77_fix_price:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.Price - 7 ) </Value>\r\n')
elif passion_mint:
out_xml( '\t<Value> "฿' + str(GetPrice(passion_mint_fix_price, spl[10])) + '" </Value>\r\n')
else:
out_xml( '\t<Value> Var( "฿" + $' + spl[10] + '.Price ) </Value>\r\n')