[SOLVED] ListIt2 search by range

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pitek
New Member
New Member
Posts: 6
Joined: Mon Jan 04, 2010 2:25 pm

[SOLVED] ListIt2 search by range

Post 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?
Last edited by pitek on Wed Jul 22, 2015 7:27 pm, edited 2 times in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: ListIt2 search by range

Post 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.
pitek
New Member
New Member
Posts: 6
Joined: Mon Jan 04, 2010 2:25 pm

Re: ListIt2 search by range

Post 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']}
Post Reply

Return to “Modules/Add-Ons”