Opencart 2.2.0 enable search by manufacturer

Asked
Active3 hr before
Viewed126 times

2 Answers

enable
90%

So, finally i realized what was the missing query. Before the line, Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers ,So obviously I was missing the manufacturer data. This way I pulled the data from manufacturer table and processed it correctly. I hope this helps someone, cheers!,Can anyone help tweak the query so that it can show all products belonging to a searched manufacturer?

So, finally i realized what was the missing query. Before the line

 $sql. = " LEFT JOIN ".DB_PREFIX.
 "product_description pd ON
 (p.product_id = pd.product_id) LEFT JOIN " . DB_PREFIX .
 "product_to_store p2s
load more v
88%

I am using OC 2.2.0 and been struggling with the following problem for a while now:,Example: I enter Siemens in header search and click SHOW ALL RESULTS, my search page appears with all results. The problem is - results list includes only products that have Siemens in their NAME. What I need is to show all products in search results list, belonging to that manufacturer, which in our example is Siemens manufacturer. In my search.php controller file, results are defined in this line:,So open the controller file catalog/controller/common/home.php. Somewhere before this line $this->response->setOutput($this->render()); add the following,Firstly, you will need to edit the controller. In this example, I'm going to add the specials to the home page

Example: I enter Siemens in header search and click SHOW ALL RESULTS, my search page appears with all results. The problem is - results list includes only products that have Siemens in their NAME. What I need is to show all products in search results list, belonging to that manufacturer, which in our example is Siemens manufacturer. In my search.php controller file, results are defined in this line:

$results = $this - > model_catalog_product - > getProducts($filter_data);
load more v

Other "enable-undefined" queries related to "Opencart 2.2.0 enable search by manufacturer"