Hello,
I have built a simple search engine with 1 dropdown menu being a filter.
Here's my code:
Search with the "Categories" dropdown works just fine.
But when I enter keywords (single or multiple) in the "string" field, it's being added to the URL query, but nothing shows up. The page loads, but there's nothing in the result section. Am I doing something wrong here?
Thanks a lot!
I have built a simple search engine with 1 dropdown menu being a filter.
Here's my code:
- Code: Select all
<cms:form name="quicksearch" id="quicksearch" anchor='0'>
<cms:if k_success >
<cms:if frm_product_category!='-' >
<cms:set my_search_str="<cms:concat my_search_str ' | product_category==' frm_product_category />" scope='global'/>
</cms:if>
<cms:if frm_string!='' >
<cms:set my_search_str="<cms:concat my_search_str ' | product_name==' frm_string/>" scope='global'/>
</cms:if>
</cms:if>
<div class="w-col w-col-4">
<label><cms:if k_lang='en'>Keywords<cms:else_if k_lang='fr' />Mots-clés</cms:if></label>
<cms:input type="text" class="w-input" name="string" id="string" />
</div>
<div class="w-col w-col-4">
<label><cms:if k_lang='en'>Categories<cms:else_if k_lang='fr' />Catégories</cms:if></label>
<cms:input type="dropdown" class="w-select"
opt_values="- | <cms:embed 'produits-categories-groulx.php'/>"
name="product_category" id="product_category" />
</div>
<div class="w-col w-col-4">
<cms:input type="submit" class="search-button w-button" value="<cms:if k_lang='en'>Search<cms:else_if k_lang='fr' />Trouver</cms:if>" name="submit"/>
</div>
</cms:form>
Search with the "Categories" dropdown works just fine.
But when I enter keywords (single or multiple) in the "string" field, it's being added to the URL query, but nothing shows up. The page loads, but there's nothing in the result section. Am I doing something wrong here?
Thanks a lot!