Adding search keywords to product pages

By scott.salyers at April 21, 2010 12:33
Filed Under: Customization & Modification

Everyone knows how important searching is on the 'Net these days.  Google rules all - if you don't show up in search, you're not even in the game!  We've got tons of information on getting your site indexed, but what about searching within your site?  If customers make it to your site but can't find what they're after, you're still going to be hurting.

By default, the basic search looks at products' name, SKU, and manufacturer part number fields.  You can also use the advanced search feature to let customers search your products' descriptions.  Sometimes that's not enough though - if you're selling soda and the customer looks for 'pop' and doesn't find anything...off they go.  Frown

So, what to do?  Here's an easy trick that lets you add hidden keywords to product descriptions that the advanced search will pick up.  In the RAD editor used to set the product description, switch to HTML view and enter something like this:

     <asp:literal text="keyword1, keyword2" visible="false" runat="server" id="keywordholder"></asp:literal>

This will place a hidden field on the page that customers can't see, but that the search can.  Whatever you enter in the 'text' attribute will work as keywords, making your products easier to find on your site!

Comments

4/23/2010 2:06:53 AM #

MJG

Wow, great tip. Very timely work-around to a problem a customer of our has been having with full-text search. Looking forward to more good stuff on your blog!

MJG United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading