Thread: Product Search
View Single Post
  #4  
Old 04-08-2016, 01:33 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Product Search

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
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote