<% if @product.variants_and_option_values_for(current_pricing_options).any? %>
<% else %>
<%= hidden_field_tag "variant_id", @product.master.id %>
<% end %>
<% if @product.price_for(current_pricing_options) and !@product.price.nil? %>
<%= Spree.t(:price) %>
<%= display_price(@product) %>
<% if @product.master.can_supply? %>
<% elsif @product.variants.empty? %>
<%= Spree.t(:out_of_stock) %>
<% end %>
<%= number_field_tag :quantity, 1, class: 'title', min: 1 %>
<%= button_tag class: 'large primary', id: 'add-to-cart-button', type: :submit do %>
<%= Spree.t(:add_to_cart) %>
<% end %>