diff --git a/backend/app/views/spree/admin/products/_form.html.erb b/backend/app/views/spree/admin/products/_form.html.erb index f90f9abd289..aedae0c0a26 100644 --- a/backend/app/views/spree/admin/products/_form.html.erb +++ b/backend/app/views/spree/admin/products/_form.html.erb @@ -31,8 +31,10 @@
<%= f.field_container :price do %> - <%= f.label :price, class: 'required' %> - <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :price, + <%= f.label :price, class: Spree::Config.require_master_price ? 'required' : '' %> + <%= render "spree/admin/shared/number_with_currency", f: f, + amount_attr: :price, + required: Spree::Config.require_master_price, currency: Spree::Config.default_pricing_options.currency %> <%= f.error_message_on :price %> <% end %>