I have a live working Zencart site and would like to have a sandbox site that uses the same database. can that be done? If so, I would appreciate any guidelines on how to implement it. thanks
I have a live working Zencart site and would like to have a sandbox site that uses the same database. can that be done? If so, I would appreciate any guidelines on how to implement it. thanks
No, it can't be done. Any changes you make to the database in test (selecting a new template, adding categories/products, etc) will be reflected in the live store.
If you are restricted to one database, you should be able to give your test site's tables a different prefix, which should solve the problem I mentioned above.
Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.
Holzheimer
Fan Odyssey
Mary Ellen is correct...
As a huge number of shop parameters are controlled in the database, having more than one site share a database (while possible) will mean that configurations applied to any one site, will also be applied to all the others using the same database.
So, your "sandbox" changes will also appear in your real store...
By using a different TABLE PREFIX, you can "house" data for a different application in any database.
So, for example, your LIVE STORE may have the tables prefixed by ZEN_ (a common prefix) or may mot have a prefix at all.
You could do a second install of ZC (in a sub folder of your main site) and in the process of installing, ensure that a PREFIX is given to the tables for that second install.
Much better is to create a full CLONE of the site, and have its dbase competely separate. (if your host is generous enought to allow more that one dbase)
20 years a Zencart User
Thank you both for very clear answers :)
:-)
Sorry for bumping this old thread, but I'm considering the same thing.
I want to share the product-information between two shops which carry the same items. MultiSite isn't an option, because I don't want to share the carts / customer info etc.
The idea is to create two shops in a single database, using two different table-prefixes, zen1_ and zen2_ and create tables for both stores.
After creating both stores, I'll drop the products tables from the zen2_ database, and make views to the zen1_ tables.
Since views work like tables (with some restrictions) this might actually work :-)
The plan looks almost too simple :) Anyone who tried this? Or anyone who sees any drawbacks?
The separate prefixes should work and keep the information separate, but you can't mix and match between them, so store1 will use zen1 and store2 will use zen2.
Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.
Holzheimer
Fan Odyssey