You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jonatan Soto <se...@gmail.com> on 2011/01/26 12:54:55 UTC
Constrain discontinued products on keyword search - ecommerce
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
Re: Constrain discontinued products on keyword search - ecommerce
Posted by Jonatan Soto <se...@gmail.com>.
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 <se...@gmail.com>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