[Solved] listit2 doesn't search by item_id

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 123
Joined: Thu Mar 24, 2011 12:37 am

[Solved] listit2 doesn't search by item_id

Post by magallo »

Hi all, i've been trying to have a search box to find items by their item id. While submitting words would return some items (title) submitting numbers would return nothing.

{ListIt2Portfolio action="search"}

There used to be a filter mode that seems to be not functioning ether.

Listit2 v=1.4.1
cmsms = 1.11.13
Last edited by magallo on Tue Jun 30, 2015 10:42 pm, edited 2 times in total.
Magal Hezi
Pixel Solutions, Technology Partners
magal@pixelsolutions.biz | pixelsolutions.biz

Image
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: listit2 doesn't search by item_id

Post by Jeff »

Typically the item_id is an internal number and is not known by the web user so it doesn't make sense to search for it.

You could do what you want with a simple form and smarty.

{if empty($smarty.request.item_id)}
<form>
<input name=item_id>
</form>
{else}
{ListIt2Portfolio action=detail item=$smarty.request.item_id}
{/if}
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 123
Joined: Thu Mar 24, 2011 12:37 am

Re: listit2 doesn't search by item_id

Post by magallo »

Thanks, that did it.
Magal Hezi
Pixel Solutions, Technology Partners
magal@pixelsolutions.biz | pixelsolutions.biz

Image
Locked

Return to “Modules/Add-Ons”