Page 1 of 1

[SOLVED] ListIt2 search by range

Posted: Wed Jul 22, 2015 4:36 pm
by pitek
Hello.
I have listit2, and field "price".
I try to search products with price more then 100, and less then 1000, but i dont know how.

I tried this:

Code: Select all

{ListIt2Catalog action="default" search_price="100,101,102 ... etc"}
and

Code: Select all

{ListIt2Catalog action="default" search_price=">100"}
but works only one variant:

Code: Select all

{ListIt2Catalog action="default" search_price="100"}
{ListIt2Catalog action="default" search_price="101"}
{ListIt2Catalog action="default" search_price="102"}
But i think it is not good idea to print 900 modules requests

Any idea how to do this?

Re: ListIt2 search by range

Posted: Wed Jul 22, 2015 6:14 pm
by velden
IIRC it can't be done by default.

Note that LI2 is now longer maintained, though forks are (becoming) available.

I think LI2 search can be extended but it would need advanced cmsms and php knowledge.

Re: ListIt2 search by range

Posted: Wed Jul 22, 2015 7:23 pm
by pitek
Yeah, i try to give array in params, and it's works great, except little nottice like 'you use array, not string'. I turn off php notice.

So, i solve the problem:

Code: Select all

{ListIt2Catalog action="default" search_price=['100','101','102']}