Unwanted Search Links above Search Results

General ShopSite user discussion

Unwanted Search Links above Search Results

Postby dZi » Wed Jul 02, 2008 9:47 am

For some reason I get a duplicate link for each of my Search Results. These duplicate links appear all smushed together at the top. Here is an image of what is happening:

Image

Do I have to remove something from one of the Templates?
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby dZi » Thu Jul 03, 2008 7:23 am

I am still having trouble with this....any ideas?
Last edited by dZi on Tue Jul 08, 2008 6:12 am, edited 1 time in total.
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby dZi » Tue Jul 08, 2008 6:12 am

There must be one tag that I need to remove....I'm assuming it is in the Search template, product template, or the Search Link template, but I can't find any trace of it.....
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby Jim » Tue Jul 08, 2008 6:18 am

I can't tell anything from the small part of page that you posted. What is a link to your store so we can see a complete page.

What template are you using for the Search template, product template, and the Search Link template?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby dZi » Tue Jul 08, 2008 7:16 am

I am using Custom Templates, a mix of a few, but mostly the gradient template.....I don't expect you to read through all of this, but here is some of the code from the templates Search,Link, and Product:

I'll send you a PM with the site info


Search Template:

[-- DEFINE SEARCH_RESULTS --]



[-- HEADER --]<table valign="center">

<tr><table><tr><td><table width="280" border="0">

<tr>

<td ><img src="/media/headers/searchresults.gif" /></td>



<p>

<tr><td>Here are Your Search Results for <b>"[-- SearchString --]"</b></td></tr>

<p>[-- IF SEARCHTOP --]

<!-- START Top Search Result Form -->

<tr>

<td class="se_search_form"><table class="se_search_form">

<tbody>

<tr class="se_form_search_row">

<td colspan="4" class="se_form_term">[-- SEARCHRESULT_FORM FORM_ONLY --]</td>

</tr>

<tr class="se_form__sort_row">

<td class="se_form_sort">[-- SearchSortBy --]</td>

<td class="se_form_numresult">[-- SearchResultCount --]</td>

<td class="se_form_prevnext">[-- SearchPrevNext --]</td>

<td class="se_form_perpage">[-- SearchResultsPerPage --]</form></td>

</tr>

</tr>

<!-- END Top Search Result Form -->

[-- END_IF --]



<br>

<table width="900" class="pa_products">

<tr>

[-- VAR.columnCounter 1 --]

[-- LOOP SEARCH --]

[-- IF SEARCHPRODUCT --]

<td width="246">[-- SEARCHRESULT --]</td>

[-- VAR.columnCounter INC --]

[-- IF VAR.columnCounter 4 --]

</tr><tr>

[-- VAR.columnCounter 1 --]

[-- END_IF --]

[-- END_IF --]

[-- END_LOOP SEARCH --]

</tr>

</table>



[-- IF VAR.anyresults "no" --]

<h4>[-- Store.SearchNoResults --] [-- SearchString --]</h4>

[-- END_IF --]

</div>



[-- IF SEARCHBOTTOM --]

<div class="searchResultForm">



</div><!-- end searchResultForm -->

[-- END_IF --]



</div><!-- end text1 -->



[-- IF PAGE.Text3 --]

<div class="text3">

[-- PAGE.Text3 --]

</div>

[-- END_IF --]







</tr>

</td>

</tr>

[-- FOOTER --][-- End_Define SEARCH_RESULTS --]






Link Template



# <!-- search_link -->
# <!-- this is designed to emulate the appearance of a link from the 7.0 search pages -->

[-- DEFINE LINK_TO_PAGE --]


[-- END_DEFINE LINK_TO_PAGE --]



Product Template


######################
[-- DEFINE PRODUCT --]
######################
### Set a bunch of variables ###
[-- VAR.TableLayout no --]
#[-- VAR.Form no --]
[-- VAR.Options no --]
[-- VAR.Quantity no --]
[-- VAR.Graphic no --]
[-- INCLUDE gradient1-pr-vars.sst PROCESS --]

<table width="246">

<tr><td>
<a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a></td></tr>
<tr><td><p class="style18">[-- PRODUCT.SKU --]</p></td></tr>

<tr><td>[-- IF PRODUCT.DisplayMoreInformationPage --]
[-- IF ANALYTICS_MULTI_DOMAIN --]
<script type="text/javascript" language="JavaScript">
document.write('<a class="linkToPage" href="javascript:__utmLinker(\'[-- PRODUCT.MoreInfoURL --]\');">');
</script>
<noscript>
<a class="linkToPage" href="[-- PRODUCT.MoreInfoURL --]">
</noscript>
[-- ELSE --]
<a class="linkToPage" href="[-- PRODUCT.MoreInfoURL --]">
[-- END_IF --]
[-- END_IF --]
[-- IF PRODUCT.DisplayName --]
[-- PRODUCT.NameStyle Begin --][-- PRODUCT.NameSize Begin --]
[-- PRODUCT.Name --]
[-- PRODUCT.NameSize End --][-- PRODUCT.NameStyle End --]
[-- END_IF --]
[-- IF PRODUCT.DisplayMoreInformationPage --]
</a>
[-- END_IF --]
</td></tr><br>
<tr><td valign="right"><p class="style18">[-- PRODUCT.Price --]</p></td></tr>

</table>






[-- END_DEFINE PRODUCT --]
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby Jim » Tue Jul 08, 2008 8:14 am

Looking at the code I see not starting or closing html, head, body tags in the [-- DEFINE SEARCH_RESULTS --] section.
When I view the source of the resulting search result page I do see the starting html, head and body tags but not the closing ones and no closing table tag for the last </td> </tr> set. (I didn't check more than that so there may be others missing too).

When a browser has information that it can't put into an appropriate container (<td> <div> etc) it just displays it all in one place on the page. My guess is that because of incorrect formatting of the html all the links are being put all in one spot on the page. I searched for OM LOTUS BOWL BOX in the page source and found 2 instances of that text. The first was in the product layout and was within a table and properly included in a TD section. The second, however, is not in a TD and thus the browser doesn't know what to do with it.
Code: Select all
<table width="246">

<tr><td>
<a href="http://IP-removed/product3788.html"><img  src="http://IP-removed/media/items/ss_size2/522010050.gif" width="175" height="175" vspace="3" hspace="3" border="0"></a></td></tr>
<tr><td><p class="style18">522010050</p></td></tr>

<tr><td>            <a class="linkToPage" href="http://69.94.126.135/product3788.html">
                        <b>        OM LOTUS BOWL BOX        </b>                </a>

      </td></tr><br>
<tr><td valign="right"><p class="style18">$18.00</p></td></tr>

</table>

</td>
   <a href="http://IP-removed/product3788.html">OM LOTUS BOWL BOX</a> 
   
      <td width="246">

So you need to find the place in your code where the link is being output and make sure that it is included in a table and td.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby dZi » Mon Aug 04, 2008 1:35 pm

After hours of tinkering I still couldn't get rid of those ugly extra search links. So I decided to do some experimentation.

I changed all of my search layout templates to different combinations and STILL everytime it duplicated search results. Even if all 3 templates were untouched prefab templates they would duplicate and display on the top, bottom, or next to the item, depending on the templates I chose.

Maybe I have some setting turned on that is duplicating Search links. When I say search links I really mean the LINKED TITLE of the product, that goes to the Moreinfo page is duplicated.
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby Jim » Mon Aug 04, 2008 2:07 pm

As I mentioned previously this is being caused by bad html. Run the results of a search page through an html checker and you will find many unmatched html tags like opening or closing tr, td, div that don't have the matching one. Also I went to a page and did a search and viewed the source and see that the page does not close with the appropriate html closing tags. Here are the last few lines of that page
</tr>
</tbody>
</table>
<p class="style6 style13" align="center">© 2008
Tibet Collection <span id="ieFontCheck">A</span>ll
rights reserved.</p>

<p align="center">&nbsp;</p>
<br>

</font>
Where are the closing body and html tags?

I would first check with who ever your store is hosted with and see if they can help you out. If they can't you might want to contact one of the ShopSite Certified Designers (http://shopsite.com/csd.html) for assistance.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby dZi » Tue Oct 21, 2008 7:42 am

This is still a problem. I haven't been able to cleanup this ugly search result mess. I just can't get my head around this. I don't see how missing a couple of html tags could be DUPLICATING Moreinfo page links... I have altered the template somehow to get the duplicate links to show up in a more organized fashion as you can see in the image below:

Image

Here is the html output code minus the header and footer:

-----------------------------------------
<font size="2">

<div align="center"><table width="768" >

<tr><table><tr><td><table width="246" border="0">

<tr>

<td ><img src="/media/headers/searchresults.gif" /></td>



<p>

<tr><td>Here are Your Search Results for <b>"handbeaten"</b></td></tr>

<p>
<!-- START Top Search Result Form -->

<tr>

<td class="se_search_form"><table class="se_search_form">

<tbody>

<tr class="se_form_search_row">

<td colspan="4" class="se_form_term">
<form name="productsearch" class="productsearch" action="http://tibetcollectionws.com/cgi-tibetcollectionws/sb/productsearch.cgi" method=post >
<table class="search_table" border=0 cellpadding=0 align="center"cellspacing=0 bgcolor ="#999999" >
<tr><td class="search_field" >
<input type=text name="search_field" size=40 value="handbeaten">
</td>
<td align="left"><input type=image src="http://www.tibetcollectionws.com/media/searchspa.gif"
align=top border="0"
name="Search" alt="Search">
</td>
<td class="adv_search_text" align="left">
<input type="checkbox" name="adv_from_box" >
<a href="search.html" target="_blank" class="adv_search_text">Advanced Search</a></td>
</tr>
</table>
<input type=hidden name="storeid" value="*2c6a67e1a9bd7166bfccf22c7179f74b8d0014ba4e9b4b82">
<input type=hidden name="prevlocation" value="http://tibetcollectionws.com/shop/index.html">

<input type=hidden name="called_from_results" value="on">
<input type=hidden name="orig_search_field" value="handbeaten" >
<input type=hidden name="index_items" value="" >
<input type=hidden name="index_item_count" value="3">
<input type=hidden name="gi_mode" value="-1">
<input type=hidden name="auto_stem" value="0">
<input type=hidden name="search_results_list" value="3793,3807,4572">
<input type=hidden name="max_prod_id_length" value="4">
<input type=hidden name="gi_current_page" value="1">
</td>

</tr>

<tr class="se_form__sort_row">

<td class="se_form_sort">Sort by:<select class="search_sort_dropdown" name="sort_by" onChange = "this.form.submit();">
<option value="1" selected>Relevance</option>
<option value="2" >Price: Low to High</option>
<option value="4" >Price: High to Low</option>
<option value="8" >Alphabetical: A to Z</option>
<option value="16" >Alphabetical: Z to A</option>
</select>
</td>

<td class="se_form_numresult">1-3 of 3</td>

<td class="se_form_prevnext"></td>

<td class="se_form_perpage"></form></td>

</tr>

</tr>

<!-- END Top Search Result Form -->




<br><table border="0" cellpadding="0" cellspacing="0" width="768"><tr>

<p>



<div class="text1">


<div class="searchResultForm">



</div>






<table width="768" class="pa_products">

<tr><tr><!-- Start of ROW -->
<td width="246">





<!-- VAR PR_COLS IS NOT DEFINED -->
























<!-- VAR DEFINE IS NOT DEFINED -->




















<table width="175">

<tr><td>

<a href="http://www.tibetcollectionws.com/product3793.html"><img src="http://www.tibetcollectionws.com/media/items/ss_size2/521002000.gif" alt="521002000.gif" width="175" height="175" vspace="3" hspace="3" border="0"></a></td></tr>
<tr><td><Small>521002000</Small></td></tr>

<tr><td> <a class="linkToPage" href="http://www.tibetcollectionws.com/product3793.html">
<b><Small> 12inch HANDBEATEN SINGING BOWL </Small></b> </a>
</td></tr><br>
<tr><td valign="right"><Small>$144.00</Small></td></tr>
<tr><td><form action="http://tibetcollectionws.com/cgi-tibetcollectionws/sb/order.cgi" method="post">



<div class="checkout">

<input type=hidden name=storeid value=*2c6a67e1a9bd7166bfccf22c7179f74b8d0014ba4e9b4b82>
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=3793>



<input type=image class="add-img" src="http://www.tibetcollectionws.com/media/addcart.gif" alt="addcart.gif" width="100" height="25" vspace="3" hspace="3" border="0">


</div>
</form> </td></tr></table>













<td width="246">








<a href="http://www.tibetcollectionws.com/product3793.html">12inch HANDBEATEN SINGING BOWL</a></td>



<td width="246">





<!-- VAR PR_COLS IS NOT DEFINED -->
























<!-- VAR DEFINE IS NOT DEFINED -->




















<table width="175">

<tr><td>
<a href="http://www.tibetcollectionws.com/product3807.html"><img src="http://www.tibetcollectionws.com/media/items/ss_size2/521003000.gif" alt="521003000.gif" width="175" height="175" vspace="3" hspace="3" border="0"></a></td></tr>

<tr><td><Small>521003000</Small></td></tr>

<tr><td> <a class="linkToPage" href="http://www.tibetcollectionws.com/product3807.html">
<b><Small> 6inch HANDBEATEN SINGING BOWL </Small></b> </a>
</td></tr><br>
<tr><td valign="right"><Small>$44.00</Small></td></tr>
<tr><td><form action="http://tibetcollectionws.com/cgi-tibetcollectionws/sb/order.cgi" method="post">



<div class="checkout">

<input type=hidden name=storeid value=*2c6a67e1a9bd7166bfccf22c7179f74b8d0014ba4e9b4b82>

<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=3807>



<input type=image class="add-img" src="http://www.tibetcollectionws.com/media/addcart.gif" alt="addcart.gif" width="100" height="25" vspace="3" hspace="3" border="0">


</div>
</form> </td></tr></table>













<td width="246">








<a href="http://www.tibetcollectionws.com/product3807.html">6inch HANDBEATEN SINGING BOWL</a></td>



<td width="246">




<!-- VAR PR_COLS IS NOT DEFINED -->
























<!-- VAR DEFINE IS NOT DEFINED -->




















<table width="175">

<tr><td>
<a href="http://www.tibetcollectionws.com/product4572.html"><img src="http://www.tibetcollectionws.com/media/items/ss_size2/521004000.gif" alt="521004000.gif" width="175" height="175" vspace="3" hspace="3" border="0"></a></td></tr>
<tr><td><Small>521004000</Small></td></tr>

<tr><td> <a class="linkToPage" href="http://www.tibetcollectionws.com/product4572.html">
<b><Small> 8inch HANDBEATEN SINGING BOWL </Small></b> </a>
</td></tr><br>
<tr><td valign="right"><Small>$68.00</Small></td></tr>
<tr><td><form action="http://tibetcollectionws.com/cgi-tibetcollectionws/sb/order.cgi" method="post">



<div class="checkout">

<input type=hidden name=storeid value=*2c6a67e1a9bd7166bfccf22c7179f74b8d0014ba4e9b4b82>
<input type=hidden name=dbname value=products>

<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=4572>



<input type=image class="add-img" src="http://www.tibetcollectionws.com/media/addcart.gif" alt="addcart.gif" width="100" height="25" vspace="3" hspace="3" border="0">


</div>
</form> </td></tr></table>













<td width="246">








<a href="http://www.tibetcollectionws.com/product4572.html">8inch HANDBEATEN SINGING BOWL</a></td>



</tr><!-- Last One --></tr>



</table>




</div>






</div><!-- end text1 -->











</tr>

</td>

</tr>

</table>
--------------------------------------------------

Here is the actual search template:

--------------------------------------------------

[-- DEFINE SEARCH_RESULTS --]



[-- HEADER --]<div align="center"><table width="768" >

<tr><table><tr><td><table width="246" border="0">

<tr>

<td ><img src="/media/headers/searchresults.gif" /></td>



<p>

<tr><td>Here are Your Search Results for <b>"[-- SearchString --]"</b></td></tr>

<p>[-- IF SEARCHTOP --]

<!-- START Top Search Result Form -->

<tr>

<td class="se_search_form"><table class="se_search_form">

<tbody>

<tr class="se_form_search_row">

<td colspan="4" class="se_form_term">[-- SEARCHRESULT_FORM FORM_ONLY --]</td>

</tr>

<tr class="se_form__sort_row">

<td class="se_form_sort">[-- SearchSortBy --]</td>

<td class="se_form_numresult">[-- SearchResultCount --]</td>

<td class="se_form_prevnext">[-- SearchPrevNext --]</td>

<td class="se_form_perpage">[-- SearchResultsPerPage --]</form></td>

</tr>

</tr>

<!-- END Top Search Result Form -->

[-- END_IF --]



<br><table border="0" cellpadding="0" cellspacing="0" width="768"><tr>

<p>



<div class="text1">

[-- IF SEARCHTOP --]

<div class="searchResultForm">



</div>

[-- END_IF --]



[-- VAR.anyresults "no" --]

[-- VAR.resultcount 0 --]

<table width="768" class="pa_products">

<tr>[-- LOOP SEARCH 8 --]<td width="246">



[-- VAR.anyresults "yes" --]

[-- IF SEARCHPRODUCT --]

[-- IF VAR.resultcount VAR.pr_cols --]



[-- VAR.resultcount 0 --]

[-- END_IF --]

[-- IF VAR.resultcount 0 --]



[-- ELSE --]



[-- END_IF --]

[-- VAR.resultcount INC --]

[-- END_IF --]

[-- IF SEARCHLINK --]



[-- SEARCHRESULT --]</td>



[-- ELSE --]



[-- END_IF --][-- END_LOOP SEARCH --]</tr>



</table>



[-- IF VAR.anyresults "no" --]

<h4>[-- Store.SearchNoResults --] [-- SearchString --]</h4>

[-- END_IF --]

</div>



[-- IF SEARCHBOTTOM --]

<div class="searchResultForm">



</div><!-- end searchResultForm -->

[-- END_IF --]



</div><!-- end text1 -->



[-- IF PAGE.Text3 --]

<div class="text3">

[-- PAGE.Text3 --]

</div>

[-- END_IF --]







</tr>

</td>

</tr>

</table>

[-- FOOTER --]

[-- End_Define SEARCH_RESULTS --]


-------------------------------------------

[/img]
dZi
 
Posts: 96
Joined: Wed Feb 20, 2008 1:10 pm

Postby Jim » Tue Oct 21, 2008 10:27 am

If you have the search destination set to the MoreInfo page then a link will be generated for that. If you also have the product template displaying the moreinfo link then the link will also display for that. So you would see 2 links. So try removing the moreinfo link from the product template that is used for search results and see if that fixes the problem.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 64 guests

cron