Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Two Websites / One Database

    I want to create two websites. Website A with 200 products and Website B with 50 products which are also included in the 200 in Website A.

    The 50 products that are in both websites have the same prices, descriptions and images in both websites.

    I read somewhere some time back that you can do this in a way you would only need to input the common 50 products ONCE ie they would all go in to a shared Zencart "database".

    What do I need to get this up and running ?

  2. #2
    Join Date
    May 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Two Websites / One Database

    Following workaround should work:

    In case you don't need the product manufacturer or product model fields, use one of those to set a special flag. Like a manufacturer called "ShopAandB".

    For the 2nd store where you only display 50 of those product just perform a simple flagcheck in the file tpl_product_info_display.php:

    if ($products_model == "ShopAandB") {
    // display product
    } else {
    // do not display
    }


    Using that method you could use the same DB, just make sure you use the same mods like stock by attributes etc, otherwise it will mess up the database.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Two Websites / One Database

    What do I need to get this up and running ?
    There is also a 3rd party module for multi site
    It has been used with success by many and as many have issues setting it up
    The support thread for it and the author are not active but it might be worth a look and a test shop to make your attempts at setup easier than messing with live shops
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Re: Two Websites / One Database

    Do you know the name of the multi site addon ?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Two Websites / One Database

    Do you know the name of the multi site addon ?
    Search for multisite
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Two Websites Sharing the Same MYSQL Database
    By limelites in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 Nov 2012, 05:26 PM
  2. One database for two websites
    By ideasco in forum Installing on a Linux/Unix Server
    Replies: 17
    Last Post: 31 Mar 2010, 02:26 PM
  3. Two websites, one items database possible?
    By fritzy in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2008, 11:26 PM
  4. Two websites from the same database.
    By bigjoed in forum General Questions
    Replies: 5
    Last Post: 14 Sep 2007, 03:04 PM
  5. One PayPal account - two websites?
    By Peekay in forum Addon Payment Modules
    Replies: 1
    Last Post: 20 Jun 2006, 12:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR