<%= form_for :order, url: populate_orders_path do |f| %>
<% if @product.variants_and_option_values_for(current_pricing_options).any? %>
<%= t('spree.variants') %>
<% else %> <%= hidden_field_tag "variant_id", @product.master.id %> <% end %> <% if @product.price_for(current_pricing_options) and !@product.price.nil? %>
<%= t('spree.price') %>
<%= display_price(@product) %>
<% if @product.master.can_supply? %> <% elsif @product.variants.empty? %>
<%= t('spree.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 %> <%= t('spree.add_to_cart') %> <% end %>
<% else %>

<%= t('spree.product_not_available_in_this_currency') %>
<% end %>
<% end %>