THA: set show original price
This commit is contained in:
parent
8b6eba6ac9
commit
6fb8e87003
1 changed files with 66 additions and 66 deletions
|
|
@ -93,78 +93,78 @@
|
|||
|
||||
out_xml('\t\t<BlendState> ' + pd_stage3 + ' </BlendState>\n')
|
||||
|
||||
if "show-blend-only" in xml_parameter:
|
||||
print("Hot price ignore ")
|
||||
else:
|
||||
out_xml('\t\t<HotPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_1 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = "Free"\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_1 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_1 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Discount , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</HotPrice>\n')
|
||||
if "show-blend-only" in xml_parameter:
|
||||
print("Hot price ignore ")
|
||||
else:
|
||||
out_xml('\t\t<HotPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_1 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = "Free"\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_1 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_1 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Discount , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</HotPrice>\n')
|
||||
|
||||
out_xml('\t\t<HotOriginalPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_1 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_1 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return ""\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_1 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</HotOriginalPrice>\n')
|
||||
out_xml('\t\t<HotOriginalPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_1 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_1 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return ""\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_1 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_1 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</HotOriginalPrice>\n')
|
||||
|
||||
|
||||
if "show-blend-only" in xml_parameter:
|
||||
print("Cold price ignore ")
|
||||
else:
|
||||
out_xml('\t\t<IcePrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_2 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = "Free"\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_2 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_2 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Discount , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</IcePrice>\n')
|
||||
out_xml('\t\t<IcePrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_2 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = "Free"\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_2 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_2 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Discount , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</IcePrice>\n')
|
||||
|
||||
out_xml('\t\t<IceOriginalPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_2 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_2 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return ""\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_2 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</IceOriginalPrice>\n')
|
||||
out_xml('\t\t<IceOriginalPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
out_xml('\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tIf $' + pd_code_2 +'.Price = -1 Then\n')
|
||||
out_xml('\t\t\t\t\tVar return = ""\n')
|
||||
out_xml('\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\tIf $' + pd_code_2 + '.Discount = "" Then\n')
|
||||
out_xml('\t\t\t\t\t\tVar return ""\n')
|
||||
out_xml('\t\t\t\t\tElse\n')
|
||||
out_xml('\t\t\t\t\t\tIf $' + pd_code_2 + '.Discount = > 0 Then\n')
|
||||
out_xml('\t\t\t\t\t\t\tVar return !assigned StringFmt( $' + pd_code_2 +'.Price , DisplayFormat, PreScaleConvertShow)\n')
|
||||
out_xml('\t\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t\tEndIf\n')
|
||||
out_xml('\t\t\t)\n')
|
||||
out_xml('\t\t</IceOriginalPrice>\n')
|
||||
|
||||
out_xml('\t\t<BlendPrice>\n')
|
||||
out_xml('\t\t\teval(\n')
|
||||
|
|
@ -525,7 +525,7 @@
|
|||
out_xml('\t\t<MenuIcePriceLabel> 000082 </MenuIcePriceLabel>\n')
|
||||
out_xml('\t\t<MenuBlendPriceLabel> 000083 </MenuBlendPriceLabel>\n')
|
||||
out_xml('\t\t<MenuUnavailableLabel> 000013 </MenuUnavailableLabel>\n')
|
||||
out_xml('\t\t<ShowOriginalPrice> "Enable" </ShowOriginalPrice>\n')
|
||||
out_xml('\t\t<ShowOriginalPrice> "true" </ShowOriginalPrice>\n')
|
||||
out_xml('\t</Configuration>\n')
|
||||
out_xml('\t<Menus>\n')
|
||||
out_xml(';banners\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue