We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sale prices form should only show buyable product (like stock view).
Currently it is including product.master in the form and table.
spree_sales/app/controllers/spree/admin/sale_prices_controller.rb
Lines 49 to 52 in 9fe999c
@variants = @product.variants.map do |variant| [variant.id, variant.sku_and_options_text] end if @variants.variants.size > 1 @variants.push [@product.master.id, @product.master.sku_and_options_text] else @variants.insert(0, [:all_variants, Spree.t(:all_variants)]) end
spree_sales/app/views/spree/admin/sale_prices/_form.html.erb
Line 22 in 9fe999c
<%= select_tag "sale_price[variant]", options_from_collection_for_select(@variants, :first, :last), class: 'select2' %>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Sale prices form should only show buyable product (like stock view).
Currently it is including product.master in the form and table.
spree_sales/app/controllers/spree/admin/sale_prices_controller.rb
Lines 49 to 52 in 9fe999c
spree_sales/app/views/spree/admin/sale_prices/_form.html.erb
Line 22 in 9fe999c
The text was updated successfully, but these errors were encountered: