Problem with Search in Products

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
seregarem
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 28, 2010 1:03 pm

Problem with Search in Products

Post by seregarem »

I'm using Checkbox in my Search Form:

Code: Select all

{if isset($searchprops)}
{foreach from=$searchprops key='fldname' item='obj'}
<div class="row_search">
  <label for="{$actionid}_{$fldname}">{$obj->prompt}:</label>
    {if $obj->type == 'text'}
      <input type="text" name="{$actionid}cd_prodvalue[{$fldname}]" size="40" maxlength="40"/>
    {else if $obj->type == 'dropdown'}
      <select name="{$actionid}cd_prodvalue[{$fldname}]" id="{$actionid}_{$fldname}">
      {html_options options=$obj->options}
      </select>
    {else if $obj->type == 'checkbox'}
      <input type="checkbox" name="{$actionid}cd_prodvalue[{$fldname}]" id="{$actionid}_{$fldname}" />
    {/if}
</div>
{/foreach}
{/if}
But if checkbox is checked, a mistake appears:

Code: Select all

Warning: rawurlencode() expects parameter 1 to be string, array given in /home/hiphop/public_html/temp_sites/manego/lib/classes/module_support/modform.inc.php on line 869

Warning: rawurlencode() expects parameter 1 to be string, array given in /home/hiphop/public_html/temp_sites/manego/lib/classes/module_support/modform.inc.php on line 869
But sometimes this mistake doesn't appear and checkbox doesn't impact on the result of searching. What's wrong? Is using of checkbox supported by Search function of Products???
seregarem
Forum Members
Forum Members
Posts: 200
Joined: Sat Aug 28, 2010 1:03 pm

Re: Problem with Search in Products

Post by seregarem »

Any ideas?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Problem with Search in Products

Post by Rolf »

You have an url? Version numbers?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”