Customizing ShopSite Search Results

General ShopSite user discussion

Customizing ShopSite Search Results

Postby jontaco » Sun Feb 13, 2011 5:26 pm

Hi all,

I would like to customize the Shopsite Search Results Page for our customers, so that both the product and
the product links show up in the results.

I am having trouble getting multiple product links to appear to the right of the product.

This is how I would like to line things up:

http://mulberrystreetgifts.com/store/search.png

This is what the in-production search results look like now (A complete mess):

http://mulbe4.sslcert19.com/cgi-bin/sc/productsearch.cgi?storeid=*1837e081594f263cae70a8db115c


And this is what my search loop code currently looks like:

Code: Select all
           
 [-- LOOP SEARCH 2--]                             
 
<!--Product Appears Here-->       
<td>[-- SEARCHRESULT --]</td>

<!--Product Links Appear Here-->
<td>[-- SEARCHRESULT --]</td>
                                           
[-- END_LOOP SEARCH --]


As you can see I have the search loop set to 2 columns.

How can I tell Shopsite to place multiple product links in the second column?
jontaco
 
Posts: 39
Joined: Sun Apr 20, 2008 8:05 pm
Location: Huntsville, AL

Re: Customizing ShopSite Search Results

Postby mjbrunelle » Mon Feb 14, 2011 2:42 am

It has been our experience that SS when outputting the search results puts out a product, then the list of links for that product.

It is necessary to test whether it is a product or link. We output the products in a table with the links lined up underneath the item record from left to right. You would need to do the same, test when it is a new product.

1) A new product, and start a new row with the product information in the first cell.

2) Start the second cell and continue to add the links until a new product appears. Close the cell and row.

3) Do step 1 again.

Code: Select all
[-- LOOP SEARCH --]
     <!-- Call dmiSearchLink.sst in Page Templates -->
     <!-- SS automatically calls link template -->
     [-- IF SEARCHLINK --]
     [-- ELSE --]
          <!-- Start New Found Product Row -->
          </td></tr>
     <!-- Toggle Background Color On Rows -->
          [-- IF VAR.bgColor 0 --]
               [-- VAR.bgColor 1 --]
               [-- VAR.background "ffffff" --]
          [-- ELSE --]
               [-- VAR.bgColor 0 --]
               [-- VAR.background "f0f0f0" --]
          [-- END_IF --] 
          <!-- Start Product Search Record -->
          <tr style="background: #[-- VAR.background --]">
               <td class="productRow">
                   <!-- Call dmiProductSearch.sst in Product Templates -->
                   [-- SEARCHRESULT --]
          <!-- Start Associate Link Row -->
          <tr style="background: #[-- VAR.background --]">
               <td class="productRowLink" colspan="6">           
     [-- END_IF --]
[-- END_LOOP SEARCH--]
mjbrunelle
 
Posts: 147
Joined: Sun Jun 21, 2009 5:09 am

Re: Customizing ShopSite Search Results

Postby jontaco » Mon Feb 14, 2011 2:06 pm

Hi,

That sounds workable, but do you know of any way to get the page links to appear next to the product? Having the links underneath the product works, but it does make the page a little more lengthy than necessary, and I would think that having the product links right next to the product would make more intuitive sense for the customer.

But it seems since SS treats every link individually, there would be no way to group them together to the right of the product. Do you know of a way?

thanks again.
jontaco
 
Posts: 39
Joined: Sun Apr 20, 2008 8:05 pm
Location: Huntsville, AL


Return to User Forum

Who is online

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