Folks,
Looking for some help with ShopSite 7.1.4 custom search template.
All my products search destinations are set to 'moreinfo'.
My Search_product template looks like:
------------------------------------
[-- DEFINE PRODUCT --]
<tr class="[-- var.rowclass --]">
<td class="pubnumber">[-- Product.SKU --]</td>
<td class="pubtitle"> <a href="[-- Product.MoreInfoURL --]">[--
Product.Name --]</a></td>
<td class="sectionnote"></td>
<td class="pubprice">[-- Product.Price --]</td>
<td class="addcart"><a href="[--Product.AddToCartURL--]">add to
cart</a></td>
</tr>
[-- END_DEFINE PRODUCT--]
-------------------------------------------
and my search template looks like
------------------------------------------
<table cellpadding="0" cellspacing="0" border="0" id="resultstable">
<tr>
<th>Product No.</th>
<th class="pubtitle">Title</th>
<th>Section</th>
<th>Price</th>
<th>Buy</th>
</tr>
[-- VAR.rowclass "oddrow" --]
[-- LOOP SEARCH --]
[-- SEARCHRESULT --]
[--IF SEARCHPRODUCT--]
[-- IF VAR.rowclass "oddrow" --]
[-- VAR.rowclass "evenrow" --]
[-- ELSE --]
[-- VAR.rowclass "oddrow" --]
[-- END_IF --]
[--END_IF--]
[-- END_LOOP SEARCH --]
[-- VAR.rowclass "" --]
</table>
--------------------------------------------------------
You can look at the store under development by adding
128.174.150.86 webstore.aces.uiuc.edu
to your /etc/hosts or c:\windows\system32\etc\drivers\hosts
file for Linux/Mac and Windows respectively. Search for
anything like 'cow'. My questions are:
1. I get an extraneous <a href="product_url">Product Name</a>
between each table row (Product_url and Product Name are
from search results). Where is that coming from? My search
layout has the right Search Template and Product Template Override
selected. I've tried tweaking the Link Template Override but that
doesn't seem to help.
2. How does one get number of search results returned?
3. In my table above, the designer would like to see name of search
page right next to product name and link. I do not want to directly
link store pages in search results. Is that possible?
Any help would be much appreciated.
Thanks.
MB