Sabo
03/08/2023, 9:51 AMSpree::Core::Search::Base
and Spree::Core::ControllerHelpers::Search
for searching not only for the Product model
module SearchDecorator
class Base
end
class Product
#something
end
class Other
#something
end
::Spree::Core::Search.prepend self
end
module BuidlSearchHelperDecorator
module Product
def build_searcher(params)
#something
end
end
module Other
def build_searcher(params)
#something
end
end
def build_searcher(params)
end
::Spree::Core::ControllerHelpers::Search.prepend self
end
There is the code I wrote in /app/overrides
I was wondering if this is the right approach
------
Solidus 3.2.0kennyadsl
Sabo
03/10/2023, 11:48 AM