diff --git a/app/views/spree/shared/_products.html.haml b/app/views/spree/shared/_products.html.haml index 9b1e421009..bdb8b87600 100644 --- a/app/views/spree/shared/_products.html.haml +++ b/app/views/spree/shared/_products.html.haml @@ -7,7 +7,7 @@ %h6.search-results-title= t(:search_results, :keywords => h(params[:keywords])) - if products.any? - %ul.inline.product-listing{"data-hook" => ""} + %ul#products.inline.product-listing{"data-hook" => ""} - reset_cycle('default') - products.each do |product| - if Spree::Config[:show_zero_stock_products] || product.has_stock?