PLEASE HELP!! Product search template

General ShopSite user discussion

PLEASE HELP!! Product search template

Postby rammac13 » Thu Oct 18, 2007 12:25 pm

I am using the Text 3 on Left side for the Link Template and I want the information that is in Text 3 to be on the left side next to the product search results. As of now it is under the product search results. I tried moving Text 3 up in the code but it then just puts the Text 3 content above the product search results. Thanks for any help.



#
# Search Results define
#
[-- DEFINE SEARCH_RESULTS --]
<html>
<head>
<title>[--Store.SearchResults --]: [-- SearchString --]</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body
[-- IF PAGE.BACKGROUNDIMAGE --]
background=[-- PAGE.BACKGROUNDIMAGE --]
[-- END_IF --]
bgcolor="[-- PAGE.BACKGROUNDCOLOR --]" text="[-- PAGE.TEXTCOLOR --]" link="[-- PAGE.LINKCOLOR --]" vlink="[-- PAGE.VISITEDLINKCOLOR --]" alink="[-- PAGE.ACTIVELINKCOLOR --]" >

[-- IF PAGE.DISPLAYPAGEHEADER --]
[-- HEADER --]
[-- END_IF --]
[-- IF PAGE.DISPLAYGRAPHIC --]
<center>[--PAGE.GRAPHIC --]</center>
[-- END_IF --]
[-- IF PAGE.DISPLAYNAME --]
<center> <h1> [--PAGE.NAME --] </h1> </center>
[-- END_IF --]
#Search form at top of page

<h3>[--Store.SearchResults --]: [-- SearchString --]</h3>
<hr>

[-- IF PAGE.TEXT1 --]
<br>[-- PAGE.TEXT1 --]<br>
[-- END_IF --]
# set layout variable - save time looking up value repeatedly from the database

[-- VAR.LAYOUT PAGE.LAYOUT --]

#Start of the loop to output the search results - Products with associated Links
<b>[--Store.SearchResultPage --]:</b><br>
[-- IF SEARCHTOP --]
[-- SEARCHRESULT_FORM --]
</center>
[-- END_IF --]

<table border="0" cellpadding="5" width="95%">
[-- VAR.pa_search_result "false" --]
[-- LOOP SEARCH --]
[-- 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" --]
[-- 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>

#Search form at bottom of page
[-- IF SEARCHBOTTOM --]
[-- SEARCHRESULT_FORM --]
</center>
[-- END_IF --]

[-- IF PAGE.TEXT2 --]
<br>[--PAGE.TEXT2 --]<br>
[-- END_IF --]
[-- IF PAGE.DISPLAYPAGEFOOTER --]
[-- FOOTER --]
[-- END_IF --]
[-- IF PAGE.TEXT3 --]
[-- PAGE.TEXT3 --]
[-- END_IF --]
</body>
</html>
[-- END_DEFINE SEARCH_RESULTS --]
rammac13
 
Posts: 35
Joined: Thu Oct 18, 2007 10:30 am
Location: Oregon

Postby Jim » Thu Oct 18, 2007 12:31 pm

In this template you have the Text3 outside of any table on the page so the text will appear either above or below the table that you have defined. Try putting it in a <td> that is beside the output for the search results.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

PLEASE HELP!! Product search template

Postby rammac13 » Thu Oct 18, 2007 1:30 pm

I put the text 3 in a <td> next to the search result:

[-- SEARCHRESULT --] <td>[-- IF PAGE.TEXT3 --]
[-- PAGE.TEXT3 --]
[-- END_IF --]</td>

and it gave me the text 3 content next to each product result. I am not sure which tag to put it next to. below is the code I have now. please help, Thanks



#
# Search Results define
#
[-- DEFINE SEARCH_RESULTS --]
<html>
<head>
<title>[--Store.SearchResults --]: [-- SearchString --]</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body
[-- IF PAGE.BACKGROUNDIMAGE --]
background=[-- PAGE.BACKGROUNDIMAGE --]
[-- END_IF --]
bgcolor="[-- PAGE.BACKGROUNDCOLOR --]" text="[-- PAGE.TEXTCOLOR --]" link="[-- PAGE.LINKCOLOR --]" vlink="[-- PAGE.VISITEDLINKCOLOR --]" alink="[-- PAGE.ACTIVELINKCOLOR --]" >

[-- IF PAGE.DISPLAYPAGEHEADER --]
[-- HEADER --]
[-- END_IF --]
[-- IF PAGE.DISPLAYGRAPHIC --]
<center>[--PAGE.GRAPHIC --]</center>
[-- END_IF --]
[-- IF PAGE.DISPLAYNAME --]
<center> <h1> [--PAGE.NAME --] </h1> </center>
[-- END_IF --]
#Search form at top of page

<h3>[--Store.SearchResults --]: [-- SearchString --]</h3>
<hr>

[-- IF PAGE.TEXT1 --]
<br>[-- PAGE.TEXT1 --]<br>
[-- END_IF --]
# set layout variable - save time looking up value repeatedly from the database

[-- VAR.LAYOUT PAGE.LAYOUT --]

#Start of the loop to output the search results - Products with associated Links
<b>[--Store.SearchResultPage --]:</b><br>
[-- IF SEARCHTOP --]


[-- SEARCHRESULT_FORM --] </center>
[-- END_IF --]

<table border="0" cellpadding="5" width="95%">
[-- VAR.pa_search_result "false" --]
[-- LOOP SEARCH --]
[-- IF SEARCHLINK --]
<tr>
<td></td>
<td align="left" valign="top">


<b>
[-- END_IF --]



[-- SEARCHRESULT --] <td>[-- IF PAGE.TEXT3 --]
[-- PAGE.TEXT3 --]
[-- END_IF --]</td>



[-- IF SEARCHLINK --]
</b>
</td>
<td></td>
<td></td>
</tr>
[-- END_IF --]
[-- VAR.pa_search_result "true" --]
[-- 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>

#Search form at bottom of page
[-- IF SEARCHBOTTOM --]
[-- SEARCHRESULT_FORM --]
</center>
[-- END_IF --]

[-- IF PAGE.TEXT2 --]
<br>[--PAGE.TEXT2 --]<br>
[-- END_IF --]
[-- IF PAGE.DISPLAYPAGEFOOTER --]
[-- FOOTER --]
[-- END_IF --]

</body>
</html>
[-- END_DEFINE SEARCH_RESULTS --]
rammac13
 
Posts: 35
Joined: Thu Oct 18, 2007 10:30 am
Location: Oregon

Postby Jim » Thu Oct 18, 2007 2:25 pm

It repeats because you have it inside the [-- Loop Search --] section. You need to have a table that has this format

Code: Select all
<table>
   <tr>
      <td>
          [-- page.text3 --]
      </td>
      <td>
        Every thing from your template from
         <table border="0" cellpadding="5" width="95%">
            [-- VAR.pa_search_result "false" --]
            [-- LOOP SEARCH --]
              ...
          to and including the closing table tag for that table
       </td>
      </tr>
</table>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

PLEASE HELP!! Product search template

Postby rammac13 » Thu Oct 18, 2007 4:20 pm

That worked great. Thanks a lot.
rammac13
 
Posts: 35
Joined: Thu Oct 18, 2007 10:30 am
Location: Oregon


Return to User Forum

Who is online

Users browsing this forum: No registered users and 98 guests

cron