diff --git a/app/controllers/spree/suppliers_controller.rb b/app/controllers/spree/suppliers_controller.rb index 3b3f29cead..9ec5c0625b 100644 --- a/app/controllers/spree/suppliers_controller.rb +++ b/app/controllers/spree/suppliers_controller.rb @@ -6,9 +6,10 @@ module Spree options = {:supplier_id => params[:id]} options.merge(params.reject { |k,v| k == :id }) + @supplier = Supplier.find params[:id] + @searcher = Config.searcher_class.new(options) @products = @searcher.retrieve_products - render :template => 'spree/products/index' end end end diff --git a/app/views/spree/suppliers/show.html.erb b/app/views/spree/suppliers/show.html.erb new file mode 100644 index 0000000000..57ba45cd09 --- /dev/null +++ b/app/views/spree/suppliers/show.html.erb @@ -0,0 +1,7 @@ +