http://www.shopsite.com/templates/cookbook/quick-easy-templates-search.shtml
I have set my templates at Preferences > Search Settings > Search Layout
I want the results of a search to look like the other pages in this site. Each product has to be wrapped in 2 divs
- Code: Select all
<div class="col-md-3"><div class="pods thumbnail">
I am attempting to do this in the template code. The results duplicate the above code twice with no results within. They show up as blank divs.
This is the code I am using.
- Code: Select all
<div class="searchresults">
<article>
<div class="col-md-12"><table style="display:none"> [-- VAR.pa_search_result "false" --]
[-- LOOP SEARCH --]<div class="col-md-3"><div class="pods thumbnail">[-- IF SEARCHLINK --]
<tr>
<td></td>
<td align="left" valign="top">
<b>
[-- END_IF --]
[-- SEARCHRESULT --]
[-- IF SEARCHLINK --]
</b>
</td>
<td></td>
<td></td>
</tr>
[-- END_IF --]
[-- VAR.pa_search_result "true" --]</div></div>
[-- END_LOOP SEARCH--]
[-- IF VAR.pa_search_result "false" --]
<tr><td align="left" valign="top">[-- STORE.88 --] [-- SEARCHSTRING --]</td></tr>
[-- END_IF --]
[-- IF VAR.Quantityproduct "yes" --]
<tr><td>[-- Store.QuantityPricingFlag --] [-- Store.QuantityPricingMsg --]</td></tr>
[-- END_IF --]
[-- IF VAR.Variableproduct "yes" --]
<tr><td>[-- Store.VariablePricingFlag --] [-- Store.VariablePricingMsg --]</td></tr>
[-- END_IF --]
</table></div>
</article>
<div class="search_term">[-- SEARCHRESULT_FORM FORM_ONLY --]</div>
<div class="pagination">
<div class="search_sort">
<table class="search_sort">
<tr>
<td class="sort_by">[-- SearchSortBy --]</td>
<td class="result_count">[-- SearchResultCount --]</td>
<td class="prev_next">[-- SearchPrevNext --]</td>
<td class="per_page">[-- SearchResultsPerPage --]</td>
</tr>
</table>
</form>
</div>
</div>
</div>
This is the search page
http://www.artandsoulbeads.com/cgi-artandsoulbeads/sb/productsearch.cgi?search_field=blue
I need help finding a solution to remove these blank divs. I am using Shopsite 10. Jquery nth-child isn't working.