Constrain discontinued products on keyword search - ecommerce

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Constrain discontinued products on keyword search - ecommerce

jonatan soto
Hi,

Is there a way to hide products that have been discontinued when doing a
keyword search?

There are a couple of methods that constrains the search, but not for the
product itself.

ProductSearch#ProductSearchContext.finishCategoryAndFeatureConstraints
ProductSearch#ProductSearchContext.finishKeywordConstraints

Any ideas?

TIA

--
-----

Jonatan Soto
Reply | Threaded
Open this post in threaded view
|

Re: Constrain discontinued products on keyword search - ecommerce

jonatan soto
I found the solution.

Just put the hidden value shown below in the form that performs the search,
ex: keywordsearchbox.ftl

<input type="hidden" name="AVAILABILITY_FILTER" value="true" />

HTH




On Wed, Jan 26, 2011 at 12:54 PM, Jonatan Soto <[hidden email]>wrote:

> Hi,
>
> Is there a way to hide products that have been discontinued when doing a
> keyword search?
>
> There are a couple of methods that constrains the search, but not for the
> product itself.
>
> ProductSearch#ProductSearchContext.finishCategoryAndFeatureConstraints
> ProductSearch#ProductSearchContext.finishKeywordConstraints
>
> Any ideas?
>
> TIA
>
> --
> -----
>
> Jonatan Soto
>



--
-----

Jonatan Soto