View Single Post
Old 08-19-2022, 06:20 AM
xcartdev2 xcartdev2 is offline

Advanced Member
Join Date: Nov 2011
Posts: 43

Default Re: Front end (Customer) product search logic and search results - worse than X-Cart 4?

So what I am trying to do is for any search term:
- list products where the substring is in the product title first
- list products where the substring is elsewhere (like in the description) after the above.

If I do a getData (using the default code) it returns a list of products but that list does not contain the name, description, page title, meta description, etc.

As such I can't loop through these results to get places where the substring appears in the product title (in order to list those first) and then tag the left overs onto that array.

... or can I?
Verion 4.7.12
Reply With Quote