diff --git a/templates/app/overrides/taxon_custom_queries.rb b/templates/app/overrides/taxon_custom_queries.rb index 6e6439c6a..d9138bf2e 100644 --- a/templates/app/overrides/taxon_custom_queries.rb +++ b/templates/app/overrides/taxon_custom_queries.rb @@ -6,7 +6,7 @@ def featured(limit = 3) end def all_products_except(product_ids) - all_products.where.not(id: product_ids) + all_products.available.where.not(id: product_ids) end Spree::Taxon.prepend self