X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Add keywords to customer side advanced search (https://forum.x-cart.com/showthread.php?t=78276)

keystone 07-29-2021 10:17 AM

Add keywords to customer side advanced search
 
I am wondering if there is a way to add "search keywords" to the customer side advanced search filter. It is already on the admin side when you click on Products you can search in Product Title, Short Desc, Detailed Desc, and Search Keywords.

It doesn't make much sense to have the "search keywords" field when creating a product if it isn't included when the customer searches for it.

We thought we could use this to add color names, seasonal items, etc to our candle lines. For example someone who searches for pink candles would get a listing of all our candles with pink in that field since it may not be listed in the description or title. Or someone looking for candles for fall or Christmas...

Anyone have a solution for this?

PhilJ 07-29-2021 11:41 AM

Re: Add keywords to customer side advanced search
 
If you look here, we've modifed the search keywords to appear on the product pages as search tags... is that the sort of thing you mean?

I find that not many people actually visit the 'advanced' search page (search.php), as we also use a predictive search mod on the main search box.

Or you could maybe invest in the Refine Filters module, which is pretty decent.

keystone 07-29-2021 12:13 PM

Re: Add keywords to customer side advanced search
 
1 Attachment(s)
Hi Phil,
Thanks for responding. The tags idea isn't quite what we were looking for. Basically we wanted to add a checkbox to the customer side advanced search so it matches the admin side product search. I don't really want the customer to see the keywords because some of them are misspelled on purpose because some customers search that way.

A good example of the problem is if a customer searches for the word RED, trying to find red candles the results they see include just about every product BECAUSE (even with Product Title, Description, and Sku unchecked, and Exact Phrase selected) it still includes any product with wordd like tapeRED, textuRED, numbeRED, coloRED etc.

I'd like to have the option to filter out product title, description and sku, and ONLY search for the search keywords. Even though most customers won't probably use it, I can use it and send them the URL so they can see the products they want.

Does that make sense? I've attached a screen shot of a results page for a search for RED

PhilJ 07-29-2021 11:25 PM

Re: Add keywords to customer side advanced search
 
I'm sure there's a way of just searching the search keywords only, I'll have a think and get back to you.

Have you looked at /admin/configuration.php?option=Search_products

If you've defined 'extra' fields (eg. color), you can include checkboxes for those, on the customer-side search form.

(Extra fields is a module BTW)
/admin/modules.php
/provider/extra_fields.php

keystone 07-30-2021 12:24 PM

Re: Add keywords to customer side advanced search
 
The extra field idea might work. I didn't think of using that. I'll check that out. Thanks.


All times are GMT -8. The time now is 11:03 AM.

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