Post by Joe1234 » Sat May 21, 2022 6:35 am

I need to modify the search to search for products in a different database table. Can I get some insight on how to do that? I don't see a search file in the model directory, and the search file in the controller doesn't seem to be the main function of the search feature. Where are the files that I need?

I also need to include the page in the sitemap generating, where would I look to do that?

Thanks.

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by by mona » Sat May 21, 2022 9:30 am

I don’t know of anything in the marketplace, but you can look.
This is about as close as I can think of.
https://www.opencart.com/index.php?rout ... load_id=29

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Johnathan » Sat May 21, 2022 9:55 pm

If you want to modify the code yourself, the file that controls the product search is this one:

/catalog/model/catalog/product.php

It's in the getProducts() function and the getTotalProducts() function.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Joe1234 » Wed May 25, 2022 1:24 pm

Thanks

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am
Who is online

Users browsing this forum: No registered users and 265 guests