Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to search in two independent product tables?


Andybird

Recommended Posts

Hi guys,

 

I have two websites, at two different locations, sharing the same data base. Though, I would like to have two different products related tables. Would someone explain what should be changed in the search modules so that the search is made in both product related tables?

 

Thanks for your help.

 

Andybird

Link to comment
Share on other sites

Me again.

 

I presume the change must be opperated somwhere at ligne 213 in advanced_search_result.php at this level:

 

$from_str = "from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m using(manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_CATEGORIES . " c, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c";

 

…adding somewhere the TABLE_PRODUCTS_NEW and TABLE_PRODUCTS_DESCRIPTIN_NEW.

 

Unfortunately, I’m not good enough with php programming to do that by my own… Any help would be highly appreciated.

 

Thanks,

Andybird.

Link to comment
Share on other sites

its not just you return results from both tables but then you need to process the user interaction which makes what you ask very complicated. Basically every script that access products in your stores has to be moded.

 

Check the multi-store related contributions you may find something that's simpler to implement.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...