update script gen for pro 15THB
This commit is contained in:
parent
12e6a8364b
commit
9db81b7549
3 changed files with 77 additions and 55 deletions
|
|
@ -6,6 +6,11 @@
|
|||
else:
|
||||
touch_less_gen = False
|
||||
|
||||
if current_file_name == "page_catalog_group_pro_15THB.skt":
|
||||
fixed_price = 15
|
||||
else:
|
||||
fixed_price = 0
|
||||
|
||||
print ("######################################################################################################")
|
||||
idx_of_eng = 2
|
||||
out_xml('<FrameScroll> \r\n')
|
||||
|
|
@ -175,9 +180,14 @@
|
|||
|
||||
out_xml( '\t\tVar OpenFromXML = CurrentXMLFileName2\r\n')
|
||||
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t\tVar PriceD1 = '+ (('$' + spl[4] + '.Price') if spl[4] == '-' else str(fixed_price)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = '+ (('$' + spl[5] + '.Price') if spl[5] == '-' else str(fixed_price)) + '\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = '+ (('$' + spl[6] + '.Price') if spl[6] == '-' else str(fixed_price)) + '\r\n')
|
||||
else:
|
||||
out_xml( '\t\tVar PriceD1 = $' + spl[4] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD2 = $' + spl[5] + '.Price\r\n')
|
||||
out_xml( '\t\tVar PriceD3 = $' + spl[6] + '.Price\r\n')
|
||||
|
||||
out_xml( '\t\tVar PD_CODE1 = "' + pd_code_1 + '"\r\n')
|
||||
out_xml( '\t\tVar PD_CODE2 = "' + pd_code_2 + '"\r\n')
|
||||
|
|
@ -369,9 +379,15 @@
|
|||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[4] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[4] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_ice_show = True
|
||||
|
|
@ -414,9 +430,15 @@
|
|||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[5] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[5] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
ice_tab_blend_show = True
|
||||
|
|
@ -461,9 +483,15 @@
|
|||
if "free" in param:
|
||||
out_xml( '\t<Value> "Free" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> StringFmt( 15 , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> StringFmt( $' + spl[6] + '.Price , DisplayFormat, PreScaleConvertShow) </Value>; test\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
if fixed_price > 0:
|
||||
out_xml( '\t<Value> "฿15" </Value>\r\n')
|
||||
else:
|
||||
out_xml( '\t<Value> Var( "฿" + $' + spl[6] + '.Price ) </Value>\r\n')
|
||||
out_xml( '\t</Text>\r\n')
|
||||
|
||||
out_xml( '\t<Image>\r\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue