Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

add keyword to advanced search options

   X-Cart forums > X-Cart 4 > Dev Questions
Thread Tools Search this Thread
Old 03-26-2018, 11:55 AM
keystone keystone is offline

Join Date: Jul 2006
Location: USA
Posts: 741

Default 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?
__________________ - X-Cart Version 4.7.11 Gold Plus php7.3
running on UNIX X-Cart Gold Plus - Version 4.7.11 php7.2
cdseo pro
running on UNIX
Reply With Quote
Old 04-09-2018, 08:38 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline

Join Date: Dec 2010
Posts: 6,373

Default 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.
Alex Solovev,


User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
   X-Cart forums > X-Cart 4 > Dev Questions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -8. The time now is 08:47 PM.


X-Cart forums © 2001-2020