From dfaf71c2ab8e05aba47d5a16b6010ba757ea97e3 Mon Sep 17 00:00:00 2001 From: thanawat saiyota Date: Thu, 20 Mar 2025 12:48:36 +0700 Subject: [PATCH] THAI: fix topping show that invisible --- inc/button_topping_select_confirm_order.inc | 38 +- xml/page_topping_select8.xml | 523 ++++++++++++++------ 2 files changed, 399 insertions(+), 162 deletions(-) diff --git a/inc/button_topping_select_confirm_order.inc b/inc/button_topping_select_confirm_order.inc index 7563d092..7a598798 100644 --- a/inc/button_topping_select_confirm_order.inc +++ b/inc/button_topping_select_confirm_order.inc @@ -340,27 +340,47 @@ If CART_COUNT = 0 Then If blend_button_state = "PressForever" Then Var toppingSelectState = "Enable" If toppingSelectState = "Enable" Then - Var CustomOreoState = "Enable" - Var CustomOvaltineState = "Enable" - Var CustomCocoaState = "Enable" + + + Var PopupToppingSelect = "Enable" If toppingID6index2 = 321 Then - Var CustomOreoCheckState = "Enable" + If toppingID6index2Status = "Enable" Then + Var CustomOreoCheckState = "Enable" + Var CustomOreoState = "Enable" + Else + Var CustomOreoCheckState = "Disable" + Var CustomOreoState = "Enable" + EndIf Else - Var CustomOreoCheckState = "Disable" + Var CustomOreoCheckState = "Invisible" EndIf + If toppingID6index3 = 322 Then - Var CustomCocoaCheckState = "Enable" + If toppingID6index3Status = "Enable" Then + Var CustomCocoaCheckState = "Enable" + Var CustomCocoaState = "Enable" + Else + Var CustomCocoaCheckState = "Disable" + Var CustomCocoaState = "Enable" + EndIf Else - Var CustomCocoaCheckState = "Disable" + Var CustomCocoaCheckState = "Invisible" EndIf + If toppingID6index4 = 323 Then - Var CustomOvaltineCheckState = "Enable" + If toppingID6index4Status = "Enable" Then + Var CustomOvaltineCheckState = "Enable" + Var CustomOvaltineState = "Enable" + Else + Var CustomOvaltineCheckState = "Disable" + Var CustomOvaltineState = "Enable" + EndIf Else - Var CustomOvaltineCheckState = "Disable" + Var CustomOvaltineCheckState = "Invisible" EndIf EndIf EndIf diff --git a/xml/page_topping_select8.xml b/xml/page_topping_select8.xml index 93713d21..eb6e9f7f 100644 --- a/xml/page_topping_select8.xml +++ b/xml/page_topping_select8.xml @@ -1030,22 +1030,7 @@ EndIf - Var oreo_y = 1060 - Var oreo_button_y = 1070 - Var oreo_text_y = 1085 - - Var ovaltine_y = 1060 - Var ovaltine_button_y = 1070 - Var ovaltine_text_y = 1085 - - Var cocoa_y = 1060 - Var cocoa_button_y = 1070 - Var cocoa_text_y = 1085 - - Var bottom_y = 1060 - Var accept_y = 1075 - - Var offset = 0 + If Seeker = "curr" Then If MenuReason = "arm-not-ready" Then @@ -1086,26 +1071,53 @@ Var MenuReasonStage = "Enable" EndIf + + Var oreo_y = 1060 + Var oreo_button_y = 1070 + Var oreo_text_y = 1085 + + Var ovaltine_y = 1060 + Var ovaltine_button_y = 1070 + Var ovaltine_text_y = 1085 + + Var cocoa_y = 1060 + Var cocoa_button_y = 1070 + Var cocoa_text_y = 1085 + + Var bottom_y = 1060 + Var accept_y = 1075 + + Var offset_total = 0 + If CustomOreoState = "Enable" Then - Var offset = offset + 72 - Var ovaltine_y = 1060 + offset - Var ovaltine_button_y = 1070 + offset - Var ovaltine_text_y = 1085 + offset + Var offset_total = 72 EndIf - + + Var ovaltine_offset = offset_total + If CustomOvaltineState = "Enable" Then - Var offset = offset + 72 - Var cocoa_y = 1060 + offset - Var cocoa_button_y = 1070 + offset - Var cocoa_text_y = 1085 + offset + Var offset_total = offset_total + 72 EndIf - + + Var cocoa_offset = offset_total + If CustomCocoaState = "Enable" Then - Var offset = offset + 72 - Var bottom_y = 1060 + offset - Var accept_y = 1075 + offset + Var offset_total = offset_total + 72 EndIf + Var bottom_offset = offset_total + + Var ovaltine_y = 1060 + ovaltine_offset + Var ovaltine_button_y = 1070 + ovaltine_offset + Var ovaltine_text_y = 1085 + ovaltine_offset + + Var cocoa_y = 1060 + cocoa_offset + Var cocoa_button_y = 1070 + cocoa_offset + Var cocoa_text_y = 1085 + cocoa_offset + + Var bottom_y = 1060 + bottom_offset + Var accept_y = 1075 + bottom_offset + Refresh TimerReset @@ -1460,7 +1472,7 @@ DEBUGVAR toppingID6index4 DEBUGVAR toppingID6index5 DEBUGVAR toppingID6index6 - + DEBUGVAR toppingID6index1Status DEBUGVAR toppingID6index2Status DEBUGVAR toppingID6index3Status @@ -1665,6 +1677,8 @@ Var SpecialMix = "Enable" Var CustomSyrup = "Enable" + + Var showOreoAddEnable = "Disable" Var showOvaltineEnable = "Disable" Var showCocoaEnable = "Disable" @@ -1726,7 +1740,7 @@ Var showOreoAddEnable = "Disable" Var showOvaltineEnable = "Disable" Var showCocoaEnable = "Disable" - + If toppingSelectState = "Enable" Then Var CustomCocoaCheckState = "Disable" Var CustomOreoCheckState = "Disable" @@ -1745,8 +1759,45 @@ ; Var showCoffeeTamping = "Invisible" EndIf + If toppingID6index2Status = "" Then + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index3Status = "" Then + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index4Status = "" Then + Var showOvaltineEnable = "Invisible" + EndIf + + If toppingID6index5Status = "" Then + Var showStrawberryEnable = "Invisible" + EndIf + + If toppingID6index6Status = "" Then + Var showYuzuEnable = "Invisible" + EndIf + + If toppingID6index2Status = "Disable" Then + Var showOreoAddEnable = "Disable" + EndIf + + If toppingID6index3Status = "Disable" Then + Var showCocoaEnable = "Disable" + EndIf + + If toppingID6index4Status = "Disable" Then + Var showOvaltineEnable = "Disable" + EndIf + + If toppingID6index5Status = "Disable" Then + Var showStrawberryEnable = "Disable" + EndIf + + If toppingID6index6Status = "Disable" Then + Var showYuzuEnable = "Disable" + EndIf Var ExtraTopping = "Enable" @@ -8731,28 +8782,42 @@ EndIf EndIf - If SelectedToppingCount >= 2 Then + If SelectedToppingCount >= 2 Then If showCocoaEnable = "Press" Then Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Disable" + EndIf EndIf If showOreoAddEnable = "Press" Then Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Disable" + EndIf EndIf Else If showCocoaEnable = "Disable" Then If toppingID6index3 = 322 Then - Var showCocoaEnable = "Enable" - Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Enable" + Else + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf If showOreoAddEnable = "Disable" Then If toppingID6index2 = 321 Then - Var showOreoAddEnable = "Enable" - Else - Var showOreoAddEnable = "Disible" + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Enable" + Else + Var showOreoAddEnable = "Disible" + EndIf EndIf EndIf EndIf @@ -8791,28 +8856,42 @@ EndIf EndIf - If SelectedToppingCount >= 2 Then + If SelectedToppingCount >= 2 Then If showCocoaEnable = "Press" Then Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Disable" + EndIf EndIf If showOreoAddEnable = "Press" Then Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Disable" + EndIf EndIf Else If showCocoaEnable = "Disable" Then If toppingID6index3 = 322 Then - Var showCocoaEnable = "Enable" - Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Enable" + Else + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf If showOreoAddEnable = "Disable" Then If toppingID6index2 = 321 Then - Var showOreoAddEnable = "Enable" - Else - Var showOreoAddEnable = "Disible" + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Enable" + Else + Var showOreoAddEnable = "Disible" + EndIf EndIf EndIf EndIf @@ -8907,25 +8986,39 @@ If SelectedToppingCount >= 2 Then If showCocoaEnable = "Press" Then Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Disable" + EndIf EndIf If showOvaltineEnable = "Press" Then Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Disable" + EndIf EndIf Else If showCocoaEnable = "Disable" Then If toppingID6index3 = 322 Then - Var showCocoaEnable = "Enable" - Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Enable" + Else + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf If showOvaltineEnable = "Disable" Then If toppingID6index4 = 323 Then - Var showOvaltineEnable = "Enable" - Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Enable" + Else + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -8971,25 +9064,39 @@ If SelectedToppingCount >= 2 Then If showCocoaEnable = "Press" Then Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Disable" + EndIf EndIf If showOvaltineEnable = "Press" Then Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Disable" + EndIf EndIf Else - If showCocoaEnable = "Disable" Then + If showCocoaEnable = "Disable" Then If toppingID6index3 = 322 Then - Var showCocoaEnable = "Enable" - Else - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "Enable" Then + Var showCocoaEnable = "Enable" + Else + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf If showOvaltineEnable = "Disable" Then If toppingID6index4 = 323 Then - Var showOvaltineEnable = "Enable" - Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Enable" + Else + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -9064,25 +9171,39 @@ If SelectedToppingCount >= 2 Then If showOreoAddEnable = "Press" Then Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Disable" + EndIf EndIf If showOvaltineEnable = "Press" Then Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Disable" + EndIf EndIf Else If showOreoAddEnable = "Disable" Then If toppingID6index2 = 321 Then - Var showOreoAddEnable = "Enable" - Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Enable" + Else + Var showOreoAddEnable = "Disable" + EndIf EndIf EndIf If showOvaltineEnable = "Disable" Then If toppingID6index4 = 323 Then - Var showOvaltineEnable = "Enable" - Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Enable" + Else + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -9140,25 +9261,39 @@ If SelectedToppingCount >= 2 Then If showOreoAddEnable = "Press" Then Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Disable" + EndIf EndIf If showOvaltineEnable = "Press" Then Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Disable" + EndIf EndIf Else If showOreoAddEnable = "Disable" Then If toppingID6index2 = 321 Then - Var showOreoAddEnable = "Enable" - Else - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "Enable" Then + Var showOreoAddEnable = "Enable" + Else + Var showOreoAddEnable = "Disable" + EndIf EndIf EndIf If showOvaltineEnable = "Disable" Then If toppingID6index4 = 323 Then - Var showOvaltineEnable = "Enable" - Else - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var showOvaltineEnable = "Enable" + Else + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -9372,21 +9507,31 @@ If showStrawberryEnable = "Press" Then If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Enable" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Enable" + Else + Var showStrawberryEnable = "Disable" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Enable" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Enable" + Else + Var showYuzuEnable = "Disable" + EndIf EndIf Else If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Press" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Press" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Disable" + Var showYuzuEnable = "Disable" EndIf EndIf @@ -9413,37 +9558,46 @@ SoundVolume SAVELOG " Press add Strawberry " - + If showStrawberryEnable = "Press" Then If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Enable" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Enable" + Else + Var showStrawberryEnable = "Disable" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Enable" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Enable" + Else + Var showYuzuEnable = "Disable" + EndIf EndIf Else If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Press" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Press" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Disable" + Var showYuzuEnable = "Disable" EndIf EndIf Var SelectSyrupType = 1 + Function 2 Refresh - - @@ -9497,20 +9651,30 @@ If showYuzuEnable = "Press" Then If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Enable" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Enable" + Else + Var showStrawberryEnable = "Disable" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Enable" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Enable" + Else + Var showYuzuEnable = "Disable" + EndIf EndIf Else If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Disable" + Var showStrawberryEnable = "Disable" EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Press" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Press" + EndIf EndIf EndIf @@ -9542,36 +9706,44 @@ "/mnt/sdcard/coffeevending/wav/click.wav" SoundVolume - SAVELOG "Press add Yuzu" - If showYuzuEnable = "Press" Then If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Enable" + If toppingID6index5Status = "Enable" Then + Var showStrawberryEnable = "Enable" + Else + Var showStrawberryEnable = "Disable" + EndIf EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Enable" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Enable" + Else + Var showYuzuEnable = "Disable" + EndIf EndIf Else If toppingID6index5 = 324 Then - Var showStrawberryEnable = "Disable" + Var showStrawberryEnable = "Disable" EndIf If toppingID6index6 = 325 Then - Var showYuzuEnable = "Press" + If toppingID6index6Status = "Enable" Then + Var showYuzuEnable = "Press" + EndIf EndIf EndIf + + Var SelectSyrupType = 1 Function 2 - - Refresh @@ -10064,14 +10236,11 @@ DEBUGVAR TOPPING_PRICE ; Oreo - Var strMulti6_1 = "" + Var strMulti6_1 = "TPID:321+multiply:0" ; Ovaltine - Var strMulti6_2 = "" + Var strMulti6_2 = "TPID:323+multiply:0" ; Coaco - Var strMulti6_3 = "" - Var strMulti6_4 = "" - Var strMulti6_5 = "" - Var strMulti6_6 = "" + Var strMulti6_3 = "TPID:322+multiply:0" If showOreoAddEnable = "Press" Then @@ -10510,32 +10679,48 @@ If SelectedToppingCount >= 2 Then If CustomOvaltineCheckState = "Press" Then Else - Var CustomOvaltineCheckState = "Disable" - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var CustomOvaltineCheckState = "Invisible" + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var CustomOvaltineCheckState = "Disable" + Var showOvaltineEnable = "Disable" + EndIf EndIf If CustomCocoaCheckState = "Press" Then Else - Var CustomCocoaCheckState = "Disable" - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var CustomCocoaCheckState = "Invisible" + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var CustomCocoaCheckState = "Disable" + Var showCocoaEnable = "Disable" + EndIf EndIf Else If CustomOvaltineCheckState = "Disable" Then If toppingID6index4 = 323 Then - Var CustomOvaltineCheckState = "Enable" - Var showOvaltineEnable = "Enable" - Else - Var CustomOvaltineCheckState = "Disable" - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var CustomOvaltineCheckState = "Enable" + Var showOvaltineEnable = "Enable" + Else + Var CustomOvaltineCheckState = "Disable" + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf If CustomCocoaCheckState = "Disable" Then If toppingID6index3 = 322 Then - Var CustomCocoaCheckState = "Enable" - Var showCocoaEnable = "Enable" - Else - Var CustomCocoaCheckState = "Enable" - Var showCocoaEnable = "Enable" + If toppingID6index3Status = "Enable" Then + Var CustomCocoaCheckState = "Enable" + Var showCocoaEnable = "Enable" + Else + Var CustomCocoaCheckState = "Disable" + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -10590,31 +10775,47 @@ If SelectedToppingCount >= 2 Then If CustomOreoCheckState = "Press" Then Else - Var CustomOreoCheckState = "Disable" - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var CustomOreoCheckState = "Invisible" + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var CustomOreoCheckState = "Disable" + Var showOreoAddEnable = "Disable" + EndIf EndIf If CustomCocoaCheckState = "Press" Then Else - Var CustomCocoaCheckState = "Disable" - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "" Then + Var CustomCocoaCheckState = "Invisible" + Var showCocoaEnable = "Invisible" + EndIf + If toppingID6index3Status = "Enable" Then + Var CustomCocoaCheckState = "Disable" + Var showCocoaEnable = "Disable" + EndIf EndIf Else If CustomOreoCheckState = "Disable" Then If toppingID6index2 = 321 Then - Var CustomOreoCheckState = "Enable" - Var showOreoAddEnable = "Enable" - Else - Var CustomOreoCheckState = "Disable" - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "Enable" Then + Var CustomOreoCheckState = "Enable" + Var showOreoAddEnable = "Enable" + Else + Var CustomOreoCheckState = "Disable" + Var showOreoAddEnable = "Disable" + EndIf EndIf EndIf If CustomCocoaCheckState = "Disable" Then If toppingID6index3 = 322 Then - Var CustomCocoaCheckState = "Enable" - Var showCocoaEnable = "Enable" - Else - Var CustomCocoaCheckState = "Disable" - Var showCocoaEnable = "Disable" + If toppingID6index3Status = "Enable" Then + Var CustomCocoaCheckState = "Enable" + Var showCocoaEnable = "Enable" + Else + Var CustomCocoaCheckState = "Disable" + Var showCocoaEnable = "Disable" + EndIf EndIf EndIf EndIf @@ -10670,31 +10871,47 @@ If SelectedToppingCount >= 2 Then If CustomOvaltineCheckState = "Press" Then Else - Var CustomOvaltineCheckState = "Disable" - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "" Then + Var CustomOvaltineCheckState = "Invisible" + Var showOvaltineEnable = "Invisible" + EndIf + If toppingID6index4Status = "Enable" Then + Var CustomOvaltineCheckState = "Disable" + Var showOvaltineEnable = "Disable" + EndIf EndIf If CustomOreoCheckState = "Press" Then Else - Var CustomOreoCheckState = "Disable" - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "" Then + Var CustomOreoCheckState = "Invisible" + Var showOreoAddEnable = "Invisible" + EndIf + If toppingID6index2Status = "Enable" Then + Var CustomOreoCheckState = "Disable" + Var showOreoAddEnable = "Disable" + EndIf EndIf Else If CustomOvaltineCheckState = "Disable" Then If toppingID6index4 = 323 Then - Var CustomOvaltineCheckState = "Enable" - Var showOvaltineEnable = "Enable" - Else - Var CustomOvaltineCheckState = "Disable" - Var showOvaltineEnable = "Disable" + If toppingID6index4Status = "Enable" Then + Var CustomOvaltineCheckState = "Enable" + Var showOvaltineEnable = "Enable" + Else + Var CustomOvaltineCheckState = "Disable" + Var showOvaltineEnable = "Disable" + EndIf EndIf EndIf If CustomOreoCheckState = "Disable" Then If toppingID6index2 = 321 Then - Var CustomOreoCheckState = "Enable" - Var showOreoAddEnable = "Enable" - Else - Var CustomOreoCheckState = "Disable" - Var showOreoAddEnable = "Disable" + If toppingID6index2Status = "Enable" Then + Var CustomOreoCheckState = "Enable" + Var showOreoAddEnable = "Enable" + Else + Var CustomOreoCheckState = "Disable" + Var showOreoAddEnable = "Disable" + EndIf EndIf EndIf EndIf