Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

If search term is an exact match...


lokksta

Recommended Posts

Hi,

 

Can this be done?

 

I was thinking along the lines of:

 

<?php if ($keywords == $products_name) {
?header('Location:' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']);
}
?>

 

In adavanced_search_result.php, but this didn't work.

 

Any ideas?

 

Thanks :D

Link to comment
Share on other sites

OK, I've decided to use this instead, as I can put it anywhere on the page:

 

<?php
if ($keywords == $listing['products_name']) {
echo '<meta http-equiv=\'Refresh\' content=\'0;URL=' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '>';
}
?>

 

I know this code would work if I could actually display the product name in advanced_search_reulst.php

 

Anyone?

 

Please?

 

Thanks :thumbsup:

Link to comment
Share on other sites

Settle down and be patient...there is more than one way to skin a cat. I'll revisit this thread tomorrow or this weekend. I'm currently out of town working from a hotel connection.

 

Bobby

Link to comment
Share on other sites

Settle down and be patient...there is more than one way to skin a cat.  I'll revisit this thread tomorrow or this weekend.  I'm currently out of town working from a hotel connection.

 

Bobby

 

OK fair enough, thanks for your time :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...