Hello!
I have only now found that the search form searches only within an active category.
how I manage that examined the form in each category, for example, when I'm in categorie vehicle, looking for a handbag in market-categorie :-)
thanks for your help
<div class="filters">
<form action="<?php echo osc_base_url(true); ?>" method="get" class="nocsrf">
<input type="hidden" name="page" value="search"/>
<input type="hidden" name="sOrder" value="<?php echo osc_search_order(); ?>" />
<input type="hidden" name="iOrderType" value="<?php $allowedTypesForSorting = Search::getAllowedTypesForSorting() ; echo $allowedTypesForSorting[osc_search_order_type()]; ?>" />
<?php foreach(osc_search_user() as $userId) { ?>
<input type="hidden" name="sUser[]" value="<?php echo $userId; ?>"/>
<?php } ?>
<fieldset class="first">
<h3><?php _e('Was suchen Sie?', 'infinity'); ?></h3>
<div class="row">
<input class="input-text" type="text" name="sPattern" id="query" value="<?php echo osc_esc_html(osc_search_pattern()); ?>" />
</div>
</fieldset>
<fieldset>
<h3><?php _e('Wo...?', 'infinity'); ?></h3>
<div class="row">
<input class="input-text" type="text" id="sCity" name="sCity" value="<?php echo osc_esc_html(osc_search_city()); ?>" />
</div>
</fieldset>
<div class="plugin-hooks">
<?php
if(osc_search_category_id()) {
osc_run_hook('search_form', osc_search_category_id()) ;
} else {
osc_run_hook('search_form') ;
}
?>
</div>
<?php
$aCategories = osc_search_category();
foreach($aCategories as $cat_id) { ?>
<input type="hidden" name="sCategory[]" value="<?php echo osc_esc_html($cat_id); ?>"/>
<?php } ?>
<div class="actions">
<button type="submit"><?php _e('Suche starten...', 'infinity') ; ?></button>
</div>
</form>
</div>
Regards, Spevoli