<%= form_for :order, url: populate_orders_path do |f| %>
<% if @product.variants_and_option_values_for(current_pricing_options).any? %>
<%= Spree.t(:variants) %>
<% 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 %>
<% else %>

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