View Full Version : turn off search for some products
wesleythorne
04-Apr-2005, 05:54 PM
hi, is it possable to turn off searching on some products. I am using catalog 6.1.4.
I have some products listed that i would like to omit from the serach results, any way to do this.
Thanks
Wesley Thorne
Nadeem
06-Apr-2005, 09:37 AM
Hi Wesley,
Within Version 6, Actinic searches on the short description and full description of each product. I'm afraid there is no way you would omit a product from the search results unless that product is hidden. I will add this comment to our wishlist to have a feature where you can omit certain products from searching.
Kind Regards
NormanRouxel
06-Apr-2005, 10:47 AM
It might be possible to patch the SearchScript.pl to omit a product if the Product Reference contained a certain string (e.g. -X). I.e product xyz-17 would show but xyz-17-X would be hidden.
Would you be able to do that to your product references?
wesleythorne
07-Apr-2005, 04:07 PM
HI, thanks for the replys. I have about 100 products that i dont want to show on search results, so patching the scripts is to time consuming.
Thanks
wesley
printerbase
08-Apr-2005, 12:12 PM
I managed to come up with a bit of a botch to exclude certain sections from the search, have a look at this thread:
http://community.actinic.com/showthread.php?t=7161
It won't be very practical if you do a lot of updates to your site.
I feel that the search function is something Actinic should be looking at revamping in any future versions, especially being able to exclude certain products/sections from the search as this seems to get asked for quite often.
Peter
NormanRouxel
08-Apr-2005, 12:21 PM
You'd only need a tiny patch put in once.
Then you simply add -X to each Product's Reference (or Product Name) for those you want omitted.
fleetwood
08-Apr-2005, 12:24 PM
I strongly agree that the search function needs a revamp.
I would like to be able to restrict search to just the product title. Searching on product description with our range brings up a far too broad result page, as many of our products contain references to other products in their descriptions.
The ideal search set up would be to set parameters to include/exclude TITLE/DESCRIPTION and specific products and sections.
Martin
cdicken
08-Apr-2005, 03:30 PM
Thanks for the comments. I have passed this onto the development team.
wesleythorne
09-Apr-2005, 02:56 PM
Hi, ok looks like a patch on the pearl script might do what i need.
I can put an 'x' in the product referance to exclude it from a search.
Any idea as to what I would do with the pearl script.
I know some html ok but havent been playing about with the peral files yet.
any help is great please.
thansk
wesley
NormanRouxel
09-Apr-2005, 03:21 PM
Hiding search results for items whose product reference ends with x
Edit SearchScript.pl (in Site1 - use a text editor - not a word preocessor - back it up first)
Look for the line
for ($nCount = $nMin; $nCount < $nMax; $nCount++) # process the range of product references in the results set
immdiately after this line add the 2 lines
{ # norman
if ( $$rarrResults[$nCount] !~ /x$/ ) # norman hide products that have reference ending in x
Look for the pair of lines
$sHTML .= ACTINIC::ParseXML($sResultMarkup); # parse the XML
}
immediately after this pair of lines add the single line
} # normanNote that this will just omit such items from being shown. It won't alter the count or sequence numbers that gets displayed - some sequences will just be omitted.
PS this should work the same in V7 as SearchScript.pl isn't changed too much there.
wesleythorne
11-Apr-2005, 09:11 AM
Thanks Norman.
Easy when you know how.
I have amended the script and changed the product ref as you said.
All is working much better now.
Many thanks
Wesley
Paddington Bear
25-Jun-2009, 02:36 PM
Hi there,
I was looking to omit some products from the search and see that this was first raised years ago, back in the days of Version 6.
As far as I can see, it hasn't been resolved so I wonder if:
a) there is any news on likelihood of an option being added to Actinic to 'Exclude product from Search'. It seems straightforward enough
b) it has been resolved, and I don't know how, or
c) anyone has an update to the workaround for the latest Perl.
Like many people, I have a list view and a product view, and I don't want the search to take people to the list view.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.