Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

External/Site root Search Facility


robulous

Recommended Posts

Hi,

 

I am currently building a site which has 2 halves to it. One half is an information site built in PHP. The other half is an OSCommerce store (in the catalog folder).

 

I have managed to make the store pretty much identical so the user feels like they are always in the same place. But i need to integrate it a bit more.

 

I want to have a search facility on my other pages (that are in the root of the site) which acts like the quick search side bar and take the user into the store with their search.

 

I know i need to pass the information to advanced_search.php, but looking at the code in "includes/boxes/search.php" is confusing me somewhat...

 

Any ideas?

 

Thanks

 

Rob

Link to comment
Share on other sites

Hi,

 

I am currently building a site which has 2 halves to it. One half is an information site built in PHP. The other half is an OSCommerce store (in the catalog folder).

 

I have managed to make the store pretty much identical so the user feels like they are always in the same place. But i need to integrate it a bit more.

 

I want to have a search facility on my other pages (that are in the root of the site) which acts like the quick search side bar and take the user into the store with their search.

 

I know i need to pass the information to advanced_search.php, but looking at the code in "includes/boxes/search.php" is confusing me somewhat...

 

you want a single search box to be able to return results from both the static site and the shopping cart site ?

do you expect the returned results to be grouped based on relevance ?

is the content from your static site being pulled from a database table ?

has google indexed your site ?

 

david

Link to comment
Share on other sites

Hi, thanks for your reply...

 

I only want to search the store, not the information side of the site.

 

The search facility within the store is fine, both the quick search box, as well as the advanced search.

 

I need to have something similar to the quick search, but i need it on my information pages, so when a user searches, they jump directly into the store. They need to be presented with the same page as if they were uses the quick search.

 

Cheers

 

Rob

Link to comment
Share on other sites

I think i have done it now.

 

I used a simple form using Get Method.

 

You need to have the text input name as 'keywords' and then link it to ./catalog/advanced_search_result.php

 

<form action="./catalog/advanced_search_result.php" method="get">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td><input type="text" name="keywords" size="14" /></td>
 </tr>
</table>
<input type="submit" name="submit" value="Search" />
<input type="hidden" name="submitted" value="TRUE" />
</form>

 

Once the user is here, they are in the shop and can use the advanced search or the quick search...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...