Thread: Duplicate shop?

Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Posts
    11
    Plugin Contributions
    0

    Default Duplicate shop?

    Dear forum members,

    I set up a shop with everything needed. The shop "project" covers several almost identical shop. Almost. So I tried to duplicate the first version of the shop. This included all shop files and the database tables. The tables and files are located on the same web and database server. I just had to change the path names (/www/shop1 to /www/shop2) and the table prefix.

    Everything looked fine, the shop seemed to work properly. I was able to browse products and place orders and everything connected with that. But - problem! - the orders are not visible in the administration frontend although it seems as they were stored in the database correctly.

    What could be the problem here? My approach was that there is something missing in the database. I dumped the source database and removed some rows from it (like statistics, counters, orders, order item and customer data). I also removed the auto increment parameters as they were not needed in some cases. In the order table I set the auto increment parameter to 20000 as I wanted to start the oder and invoice numer from that value.

    If I chose the wrong forum I kindly ask you to move my issue.

    Thank you.

    Peter

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Duplicate shop?

    Sounds like the dreaded "both configure.php files need to be changed to reflect the new site" bug. Make sure bothe the admin/includes/configure.php and the includes/configure.php are correct for each shop.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Feb 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Duplicate shop?

    Quote Originally Posted by dbltoe View Post
    Sounds like the dreaded "both configure.php files need to be changed to reflect the new site" bug. Make sure bothe the admin/includes/configure.php and the includes/configure.php are correct for each shop.
    Thanks for the suggestion. As the catalog and other settings can be modified via the administration frontend I am pretty sure both configuration files are correct. Any ideas?

    Thanks.

    Peter

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Duplicate shop?

    If I have site A and site B with both having identical items BUT different databases, I could have the admin configure.php set to upload A for both. Hence, I could change something in B but not find it in B's catalogue because it loaded to A's database.

    If both configures are correct in their settings, I'm at a loss. Sorry
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Feb 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Duplicate shop?

    Yeah, that's the strange thing. I can see orders and order items in the database but not in the frontend although I can see products both in the database, in the shop and in the frontend.

    That means there must be something wrong with the data rows in the database. But there is not much I changed. I just set the auto increment parameter. Perhaps I should not have done that. I will export the data schema from shop A again and import it without removing anything. After that I will remove items step by step.

  6. #6
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Duplicate shop?

    If what you are wanting to do is to have a 'master template site' that can be quickly installed, all that is necessary is to restore the site files to the new folders, create a database and restore the copy, and adjust the configure.php files to the new settings.

    It is not necessary to fiddle with any database settings, particularly auto_increments, as that is guaranteed to break things. The only time this is necessary is when using something like SQLyog for the database export/restore, as it does not carry over the params like auto_increment, and they need to be manually reset.

    Some database exports made with some of the mySQL admin packages include a USE DATABASE line that needs to be edited to the new values before the import, or deleted.

    If however, you are trying to have 2 shopfronts sharing one database, you need the Multisite Module.

    And if you are sharing a single database between 2 sites with differentiating table prefixes, I suspect that could get very confusing for the site admin.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 9 Jun 2015, 10:36 PM
  2. duplicate shop but both use same database
    By Phil Lomas in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 4 Oct 2013, 10:57 AM
  3. Replies: 10
    Last Post: 10 Oct 2008, 03:02 AM
  4. Placing duplicate shop on second site... Possible?
    By STFlats in forum General Questions
    Replies: 3
    Last Post: 30 Jun 2008, 03:25 AM
  5. Duplicate shop
    By DaveS in forum General Questions
    Replies: 2
    Last Post: 20 Dec 2007, 10:56 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