Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    21
    Plugin Contributions
    0

    Multiple Zen Carts accessing one database

    I’m in the process of expanding my online business. I would like to know if it’s possible to have several Zen shopping carts accessing one central database. Or could I have one Zen shopping Cart and change the logo and template style depending on the domain.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Multiple Zen Carts accessing one database

    Quote Originally Posted by mdmerrell
    I would like to know if it’s possible to have several Zen shopping carts accessing one central database.
    This seems to be possible, even easy. My USP hosts my databases on a separate server to rest of my code, and Zen Cart knows about them because the database name and path are set in the configuration files. I can't think of any reason why several carts shouldn't be set up to point to the same database. This would of course mean that those features controlled through the Admin would be the same for all of them, and the template used for each site would need to have the same name, but otherwise this sounds relatively straightforward.

    Quote Originally Posted by mdmerrell
    Could I have one Zen shopping Cart and change the logo and template style depending on the domain.
    This also seems doable to me, but rather more complicated. The template directory name is held in the database, so to have multiple styles per shop you would need to do something like,
    1. create a session variable with the template name for the domain through which the user entered the cart
    2. hack those places core code to that each time it reads template_dir from the database, you give it your session variable instead.
    Doable, but not necessarily recommended, as it would make upgrading more complex.

  3. #3
    Join Date
    Nov 2005
    Posts
    21
    Plugin Contributions
    0

    Default Re: Multiple Zen Carts accessing one database

    Quote Originally Posted by kuroi
    This seems to be possible, even easy. My USP hosts my databases on a separate server to rest of my code, and Zen Cart knows about them because the database name and path are set in the configuration files. I can't think of any reason why several carts shouldn't be set up to point to the same database. This would of course mean that those features controlled through the Admin would be the same for all of them, and the template used for each site would need to have the same name, but otherwise this sounds relatively straightforward.


    This also seems doable to me, but rather more complicated. The template directory name is held in the database, so to have multiple styles per shop you would need to do something like,
    1. create a session variable with the template name for the domain through which the user entered the cart
    2. hack those places core code to that each time it reads template_dir from the database, you give it your session variable instead.
    Doable, but not necessarily recommended, as it would make upgrading more complex.
    Thanks for your reply; I'll take your advice on the template.

 

 

Similar Threads

  1. Multiple Carts for 1 database
    By KenshiroU in forum Installing on a Windows Server
    Replies: 1
    Last Post: 5 Aug 2013, 01:50 PM
  2. One customer login for multiple zen carts sites
    By delia in forum General Questions
    Replies: 2
    Last Post: 15 Feb 2011, 10:28 PM
  3. Multiple carts, copy or duplicate database?
    By jtlmusic in forum General Questions
    Replies: 1
    Last Post: 26 Apr 2010, 12:02 AM
  4. Multiple Zen Carts/One Paypal Account
    By Vintage in forum PayPal Website Payments Pro support
    Replies: 6
    Last Post: 25 Jul 2009, 04:21 AM
  5. 2 Zen Carts on one database
    By gregoryjameswood in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 6 Feb 2007, 08:45 PM

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