What is the whole subject? As seen in the photo there is 1 option and two properties. (I apologize for the design)
On the site they are displayed as
here is the code
<form class="variants" action="/cart"> <select name="variant1" {if $product->variants|count==1 && !$product->variant->name1}style='display:none;'{/if}> {foreach $product->variants as $v} <option value="{$v->id}" {if $v->compare_price > 0}compare_price="{$v->compare_price|convert}"{/if} price="{$v->price|convert}"> {$v->name1} </option> {/foreach} </select> <select name="variant2" {if $product->variants|count==1 && !$product->variant->name2}style='display:none;'{/if}> {foreach $product->variants as $v} <option value="{$v->id}" {if $v->compare_price > 0}compare_price="{$v->compare_price|convert}"{/if} price="{$v->price|convert}"> {$v->name2} </option> {/foreach} </select> <div class="price"> <strike> {if $product->variant->compare_price > 0} {$product->variant->compare_price|convert} {/if} </strike> <span>{$product->variant->price|convert}</span> <i>{$currency->sign|escape}</i> </div> <input type="submit" class="button" value="в корзину" data-result-text="добавлено"/> </form> <!-- Выбор варианта товара (The End) -->
It is necessary to make it like here
I removed variant name 1 ... and everything seems to be fine ... but there is one BUT ... if you choose the first "RED" and the first "35" - everything is good .... but in order to choose 36 red. "red" second and "36" second .... tell me how to make it so that there are no duplicate options and everything was sent to the basket without errors