ShopSite 7.1.4 searching issues

General ShopSite user discussion

ShopSite 7.1.4 searching issues

Postby Milind Basole » Tue May 23, 2006 12:17 pm

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
Milind Basole
 

Re: ShopSite 7.1.4 searching issues

Postby loren_d_c » Tue May 23, 2006 12:40 pm

You have to have your products' Search Destination set to 'Store' in
order to be able to control how the search destination link associated
with the product displays via the Link Template Override template.

-Loren



Milind Basole wrote:
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


loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 161 guests