Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Try Searching For' Contribution


Recommended Posts

I've noticed a lot of stores lately with a "Try Searching For" link on the product info pages, followed by the product name broken down into search strings. This should multiple the number of pages your store has by a fairly large amount.

 

Easy to install, it should only take a few minutes.

 

http://www.oscommerce.com/community/contributions,4218

Edited by assembler
Link to comment
Share on other sites

i don't understand the aim , people are on the product , when they click search , where the result are search for ? could you give me some details , im blind

MS2

Link to comment
Share on other sites

i don't understand the aim , people are on the product , when they click search , where the result are search for ? could you give me some details , im blind

 

I've installed it and like it.

 

Basically - it takes the significant words from the product name and displays them below the products as hyperlinks to a search individually

 

This is a simple way of allowing the customer to use one of the words of the product name to search for similar products.

 

Tom

Link to comment
Share on other sites

I've installed it and like it.

 

Basically - it takes the significant words from the product name and displays them below the products as hyperlinks to a search individually

 

This is a simple way of allowing the customer to use one of the words of the product name to search for similar products.

 

Tom

 

It should also help to send search engines to search result pages (which they normally can't get to). They should see each search results page as a different page, immediately multiplying the number of search engine indexed pages by a large amount.

Link to comment
Share on other sites

Hi, I just installed and I use sts so it did not show at first, but I put the code in includes/sts_product_info.php and then it showed.

 

But I have one problem. The link is showing over my header instead of on the page. Here is a link to my site:

 

http://www.kjolebutikken.com/oscdemo1/prod...?products_id=30

 

How do I move it to the page?

 

Thanks:-)

Kjolebutikken

Best regards

Kjolebutikken

Link to comment
Share on other sites

VERY nice contribution, thanks!

 

Automate Production Equipment Corp.

 

TJ,

You may want to change the egrep line of the contribution, if a lot of your product names contain dashes. This line of code makes the word lowercase, and removes anything that is not a letter or number. You may wany to include - as well, so it is not removed. By doing this, you will avoid linking to blank search results pages (like your example page does).

Link to comment
Share on other sites

Hi, I just installed and I use sts so it did not show at first, but I put the code in includes/sts_product_info.php and then it showed.

 

But I have one problem. The link is showing over my header instead of on the page. Here is a link to my site:

 

http://www.kjolebutikken.com/oscdemo1/prod...?products_id=30

 

How do I move it to the page?

 

Thanks:-)

Kjolebutikken

 

I'm sorry, but I am not familar with any of the template contributions.

Link to comment
Share on other sites

TJ,

You may want to change the egrep line of the contribution, if a lot of your product names contain dashes. This line of code makes the word lowercase, and removes anything that is not a letter or number. You may wany to include - as well, so it is not removed. By doing this, you will avoid linking to blank search results pages (like your example page does).

 

Perfect, thanks. Worked like a charm. // :0)

 

My Webpage

 

<?php 
 $search_string_array = explode(" ",$product_info['products_name']);
 foreach($search_string_array AS $search_entry) {
if(strlen($search_entry) > 3) {
  //   $search_entry = ereg_replace("[^a-z0-9]", "", strtolower($search_entry));
  $search_string .= '<a href="'.tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT,'keywords='.$search_entry).'">'.$search_entry.'</a> →  ';
}
 }
 echo 'Quick Searches: '.$search_string;
?>

Link to comment
Share on other sites

I'm sorry, but I am not familar with any of the template contributions.

 

Hi, I figured it out. It had nothing to do with sts. I deleted the code from my includes/sts-product_info.php file and put it back in the product_info.php file. I just had to move the code to another location than described in the installation instructions. I think this is because I have commented out with // the code which is about the also purchased products as I don't use this, but it seems that if I put any code below this, it will not show.

 

So now I got it working and I like it very much.

 

Thanks:-)

 

Kjolebutikken

Best regards

Kjolebutikken

Link to comment
Share on other sites

  • 4 months later...

Thanks for this, a great idea for SEO. I would wait though until your sites already been quite well indexed as google are suspicious of sites that suddenly appear and have millions of pages. (info from an interview with Matt Cutts which is on youtube)

 

This is a great addition to advanced search results too:

 

<title><?php echo ucwords($keywords) . ' - '.TITLE;?></title>

 

Header Tags contribution should include the above. Sweeeeet!

 

Thanks

Edited by Caios
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...