Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalogs Nesting


qandil

Recommended Posts

Hello Everyone,

 

Can i Include a catalog with in another catalog with the condition of using the same username and password ?

 

A simple way to do this would be to install the catalog in to a directory along side your current one. Edit the database_tables.php file to have a prefix in front on 1 catalog's database tables that do involve customers.

 

Example.

 

define('TABLE_ADDRESS_FORMAT', 'address_format'); //would stay the same for both catalogs

 

define('TABLE_PRODUCTS', 'catalog1_products'); //change for catalog 1

 

define('TABLE_PRODUCTS', 'catalog2_products'); //change for catalog 2

 

Then make sure you have both sets of tables in the same database. This way both catalogs will use the same users but not the same products.

 

I've not tried this but it should work.

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

A simple way to do this would be to install the catalog in to a directory along side your current one. Edit the database_tables.php file to have a prefix in front on 1 catalog's database tables that do involve customers.

 

Example.

 

define('TABLE_ADDRESS_FORMAT', 'address_format'); //would stay the same for both catalogs

 

define('TABLE_PRODUCTS', 'catalog1_products'); //change for catalog 1

 

define('TABLE_PRODUCTS', 'catalog2_products'); //change for catalog 2

 

Then make sure you have both sets of tables in the same database. This way both catalogs will use the same users but not the same products.

 

I've not tried this but it should work.

 

Thank you very much,

 

I will try it and i will let you know

Regards,

Qandil

http://www.joodie.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...