Create product

<% if current_user.shippingoptions.count == 0 %>

Before adding a product, you need to create at least one <%= link_to 'shipping option', shippingoptions_path %>

<% else %> <%= render 'form' %> <% end %>