Hi @Hendrik, for the first case you can use <div li-tag="for option1_name in variants_option1_arr %} {%- case option.position %} {%- when 1 %} {%- if variants_option1_arr[forloop.index0] == value and variants_available_arr[forloop.index0] %} {%- assign option_disabled = false %} {%- endif %} {%- when 2 %} {%- if option1_name == product.selected_or_first_available_variant.option1 and variants_option2_arr[forloop.index0] == value and variants_available_arr[forloop.index0] %} {%- assign option_disabled = false %} {%- endif %} {%- when 3 %} {%- if option1_name == product.selected_or_first_available_variant.option1 and variants_option2_arr[forloop.index0] == product.selected_or_first_available_variant.option2 and variants_option3_arr[forloop.index0] == value and variants_available_arr[forloop.index0] %} {%- assign option_disabled = false %} {%- endif %} {%- endcase %} {%- endfor"></div>
Like this. li-tag adds {% %} at the end and the beginning