X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing and adding new features (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   add keyword to advanced search options (https://forum.x-cart.com/showthread.php?t=76127)

keystone 03-26-2018 11:55 AM

add keyword to advanced search options
 
This question relates to x-cart version 4.6.x. I was wondering why in admin Product Management there is a special field called Search Keywords but on the customer side, there is not a way to actually search just those keywords, even under the advanced search option. The only 3 check boxes are to search the title, description, and sku. Is there an easy way to add an option to include only words in the keyword field?

It seems like if a user enters a phrase into the simple search it will include the search keyword phrases but also the title, description, and sku. If I want to limit the results to only the Search Keywords, I can't. It also seems like the Search Keywords field is bundled in with the Description checkbox in Advanced Search.

I wanted to group a few of my products from different categories by adding some phrases to the search keyword field. Then I could create a blog, facebook, or twitter post and point the link to the Search Results url with the exact products I wanted.

Is there a better way to do this?

qualiteam 04-09-2018 08:38 PM

Re: add keyword to advanced search options
 
As far as I see from the source code you can tweak the template that renders the advanced search form and add another checkbox that will make the search to look in keywords only (its name should be "by_keyword").

However, it looks like the search function updates the search parameters only when you submit the form to the server and ignores parameters passed via the URL. If this is the case, you cannot share a link to the search results page.


All times are GMT -8. The time now is 07:34 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.