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

add keyword to advanced search options
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 03-26-2018, 11:55 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 694
 

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?
__________________
www.uscandleco.com - Version 4.6.6
mods:
Reboot template
cdseo pro
AC-one page checkout
running on UNIX

www.keystonecandle.com -Version 4.6.0
mods:
cdseo pro
AC-onsale
running on UNIX
Reply With Quote
  #2  
Old 04-09-2018, 08:38 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,188
 

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,
Qualiteam

---

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
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


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 09:58 AM.

   

 
X-Cart forums © 2001-2018