change Spree::Config[:show_zero_stock_products] to Spree::Config.has_preference?(:preferred_show_zero_stock_products)