Page 1 of 1

Problem with Search in Products

Posted: Wed Aug 07, 2013 6:05 am
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???

Re: Problem with Search in Products

Posted: Fri Aug 09, 2013 4:44 am
by seregarem
Any ideas?

Re: Problem with Search in Products

Posted: Fri Aug 09, 2013 7:08 am
by Rolf
You have an url? Version numbers?