<% @product.option_types.each do |option_type| %>
<%= label :new_variant, option_type.presentation %>
<% if option_type.name == 'color' %>
<%= f.collection_select 'option_value_ids', option_type.option_values, :id, :name,
{ include_blank: true }, { name: 'variant[option_value_ids][]', class: 'select2-clear', id: "option_value_ids-#{option_type.id}" } %>
<% else %>
<%= f.collection_select 'option_value_ids', option_type.option_values, :id, :presentation,
{ include_blank: true }, { name: 'variant[option_value_ids][]', class: 'select2-clear', id: "option_value_ids-#{option_type.id}" } %>
<% end %>
<% end %>
<%= f.label :sku, Spree.t(:sku) %>
<%= f.text_field :sku, class: 'form-control' %>
<%= f.label :price, Spree.t(:price) %>
<%= f.text_field :price, value: number_to_currency(@variant.price, unit: ''), class: 'form-control' %>
<%= f.label :compare_at_price, Spree.t(:compare_at_price) %>
<%= f.text_field :compare_at_price, value: number_to_currency(@variant.compare_at_price, unit: ''), class: 'form-control' %>
<%= f.label :cost_price, Spree.t(:cost_price) %>
<%= f.text_field :cost_price, value: number_to_currency(@variant.cost_price, unit: ''), class: 'form-control' %>
<%= f.label :tax_category_id, Spree.t(:tax_category) %>
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2' }) %>