Search results craziness
Posted: Mon Jul 12, 2010 3:34 pm
Here is a link to a page where you can test my cart...
http://www.mapstore.utah.gov/index.html
I've set the search results up to show 4 results wide in a rown (image on top of title on top of price) and continue down the page. Whats happening is that when I perform a search, say for "gold" the results don't show up in the 4 columns. Well let me clarify, sometimes they do, sometimes they don't; Sometimes its 2 on a row, sometimes 4, sometimes 1, and all without any seeming reason why.
Can anyone help? Thanks in advance.
Here is the code I've used for the search_product file
# <!-- search_product -->
[-- DEFINE PRODUCT --]
<td align="center">
[-- IF PRODUCT.DisplayGraphic "checked" --]
[-- IF PRODUCT.Graphic --]
<span class="product_img" align="center" valign="bottom"><a href="[-- PRODUCT.MoreInfoURL --]" >[-- PRODUCT.Graphic --]</a></span><br />
[-- END_IF --]
[-- END_IF --]
<br />
<span align="center">
<a href="[-- PRODUCT.MoreInfoURL --]" ><b>[-- PRODUCT.Name --]</b></a>
</span>
<br />
<span align="center" valign="bottom">
[-- IF PRODUCT.NumSubproducts 0 --]
[-- IF PRODUCT.DisplayPrice --]
[-- IF PRODUCT.SaleOn --]
<span style="text-decoration: line-through;">[-- PRODUCT.Price --]</span>
<b>[-- PRODUCT.SaleAmount --]</b>
[-- ELSE --]
[-- PRODUCT.Price --]
[-- END_IF --]
[-- IF PRODUCT.QuantityPricing --]
[-- STORE.QuantityPricingFlag --]
[-- VAR.Quantityproduct "yes" --]
[-- END_IF --]
[-- IF PRODUCT.VariablePrice? --]
[-- STORE.VariablePricingFlag --]
[-- VAR.Variableproduct "yes" --]
[-- END_IF --]
[-- END_IF --]
[-- END_IF --]
</span>
<br /><br />
</td>
[-- END_DEFINE PRODUCT --]
Oh also, on a side topic, is there a quick way that will align the results to the top of the row?
Thanks in advance for you help!
http://www.mapstore.utah.gov/index.html
I've set the search results up to show 4 results wide in a rown (image on top of title on top of price) and continue down the page. Whats happening is that when I perform a search, say for "gold" the results don't show up in the 4 columns. Well let me clarify, sometimes they do, sometimes they don't; Sometimes its 2 on a row, sometimes 4, sometimes 1, and all without any seeming reason why.
Can anyone help? Thanks in advance.
Here is the code I've used for the search_product file
# <!-- search_product -->
[-- DEFINE PRODUCT --]
<td align="center">
[-- IF PRODUCT.DisplayGraphic "checked" --]
[-- IF PRODUCT.Graphic --]
<span class="product_img" align="center" valign="bottom"><a href="[-- PRODUCT.MoreInfoURL --]" >[-- PRODUCT.Graphic --]</a></span><br />
[-- END_IF --]
[-- END_IF --]
<br />
<span align="center">
<a href="[-- PRODUCT.MoreInfoURL --]" ><b>[-- PRODUCT.Name --]</b></a>
</span>
<br />
<span align="center" valign="bottom">
[-- IF PRODUCT.NumSubproducts 0 --]
[-- IF PRODUCT.DisplayPrice --]
[-- IF PRODUCT.SaleOn --]
<span style="text-decoration: line-through;">[-- PRODUCT.Price --]</span>
<b>[-- PRODUCT.SaleAmount --]</b>
[-- ELSE --]
[-- PRODUCT.Price --]
[-- END_IF --]
[-- IF PRODUCT.QuantityPricing --]
[-- STORE.QuantityPricingFlag --]
[-- VAR.Quantityproduct "yes" --]
[-- END_IF --]
[-- IF PRODUCT.VariablePrice? --]
[-- STORE.VariablePricingFlag --]
[-- VAR.Variableproduct "yes" --]
[-- END_IF --]
[-- END_IF --]
[-- END_IF --]
</span>
<br /><br />
</td>
[-- END_DEFINE PRODUCT --]
Oh also, on a side topic, is there a quick way that will align the results to the top of the row?
Thanks in advance for you help!