Thread: Product Search
View Single Post
  #5  
Old 04-09-2016, 09:17 AM
  razorblade's Avatar 
razorblade razorblade is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 39
 

Default Re: Product Search

Quote:
Originally Posted by razortw
Hi there.
Open /classes/XLite/View/Form/Product/Search/Customer/SimpleForm.php, find this code
Code:
protected function getDefaultParams() { return parent::getDefaultParams() + array( \XLite\View\ItemsList\Product\Customer\Search::PARAM_INCLUDING => \XLite\Model\Repo\Product::INCLUDING_ANY, ); }
and replace it with
Code:
protected function getDefaultParams() { return parent::getDefaultParams() + array( \XLite\View\ItemsList\Product\Customer\Search::PARAM_INCLUDING => \XLite\Model\Repo\Product::INCLUDING_ALL, ); }
Should do the trick.
Of course, any code changes should be implemented as a module in order to keep them intact during upgrades

That actually reminds me; I have a question about creating modules.
I have seen the instructions for creating empty modules.
Can one empty module contain any and all specific mods I make to our xcart?
Like, in one module - I have some CSS changes as well as this particular search customization?
Or do I have to create new modules for everything?
Also, how does this ensure they will be maintained during upgrades?
__________________
/razorblade pro/
v 5.2.21
linux 2.2.29
Reply With Quote