Hi,
I installed Opencart v1.5.6.4 via the justhost.com cpanel -> mojomarketplace -> One-Click Installs. I have since changed a lot of the templates (admin and catalog), changed some code and added a couple of vqmod extensions. I now want to create a second store for a sub domain but this needs to be a fresh installation rather than using multistore as I need completely separate admins. Currently the admin folder, catalog folder etc are under /public_html and I'd like the second installation to be under a new folder (e.g. /public_html/store2).
Can someone please point me in the right direction on how to do the above? I have searched the forums and there’s a lot about moving an Opencart to a new domain but not so much about copying Opencart to a sub domain. I need to get this done in the next couple of days otherwise I'd look on the forums more before posting this question.
Also, the default store for my existing installation of Opencart is the domain root (e.g. www.mysite.co.uk). I wanted to change the store to use a sub domain but I couldn’t do this (doesn’t seem to be possible to change the default store URL) so I just added a second store using multistore. I’d now like to have my own page at www.mysite.co.uk instead of the default store. After searching the forums I tried changing HTTP_SERVER and HTTPs_SERVER in /public_html/config.php to point at my new page e.g. www.mysite.co.uk/home.html instead of the domain root/default store URL e.g. www.mysite.co.uk but the default store still appears just without any styling. How can I stop the default store appearing and point my domain at my new page?
Any help with the above questions would be much appreciated….
Thanks
Stu
Technically, you could run XXX Shops on one site, each one in it's own Subdirectory.
Lots of information exists on this:
http://forum.opencart.com/viewtopic.php?f=20&t=139100
http://forum.opencart.com/viewtopic.php?f=190&t=141546
http://forum.opencart.com/viewtopic.php?f=181&t=146165
http://forum.opencart.com/viewtopic.php?f=88&t=139676
http://forum.opencart.com/viewtopic.php?f=19&t=125868
Ernie
samples:
http://ipc.li/cart/
http://ipc.li/shop/
Lots of information exists on this:
http://forum.opencart.com/viewtopic.php?f=20&t=139100
http://forum.opencart.com/viewtopic.php?f=190&t=141546
http://forum.opencart.com/viewtopic.php?f=181&t=146165
http://forum.opencart.com/viewtopic.php?f=88&t=139676
http://forum.opencart.com/viewtopic.php?f=19&t=125868
Ernie
samples:
http://ipc.li/cart/
http://ipc.li/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Sorry for the slow response but thanks for the links which proved to be very helpful.
I finally got around to installing opencart in two subdirectories (i.e. public.html/storefs and public.html/storeayli) with two sub domains as the store urls. As previously mentioned this was to allow me to have multiple stores with multiple admins.
The two new stores are copies of the store I had previously installed in /public_html (imported a copy of the database, copied the catalog and admin files etc) however the new stores are really slow (every page including the home page take 10 times longer to load than the copied store). The number of products (about 200) and categories (about 10) haven't increased. Does anyone have any idea why the new stores are so much slower than the copied store which I have now deleted?
These are the steps I followed to install opencart in the two sub directories:
1. Create a folder (e.g. storefs) in /public_html
2. FTP contents of C:\TEMP\test_project\Opencart v1.5.6.4 install\opencart-1.5.6.4\upload to the new folder
3. Rename config-dist.php to config.php and admin/config-dist.php to admin/config.php
4. Create a blank database cPanel -> My SQL Databases (e.g. mysnack_asyoulikeit)
5. Visit the store homepage e.g. http://www.subdomain.example.com/storefs/
You should be taken to the installer page. Follow the onscreen instructions
6. After successful install, delete the /install/ directory and check paths in config.php and admin/config.php.
7. Copy folders in /public_html/catalog to /public_html/new folder/catalog
8. Copy folders in /public_html/admin to /public_html/new folder/admin
9. Copy /public_html/image/data to /public_html/new folder/image/data
10. install vqmod - ftp vqmod folder and run install from browser (then copy vqmod xml files from main store)
11. Drop all the tables in the database
12. Import backup of main store database
13. Check correct database name and details are in config.php and admin\config.php (i.e. change any references to the backup database). Also check DB_PREFIX is correct - define('DB_PREFIX', 'fzr_');
I finally got around to installing opencart in two subdirectories (i.e. public.html/storefs and public.html/storeayli) with two sub domains as the store urls. As previously mentioned this was to allow me to have multiple stores with multiple admins.
The two new stores are copies of the store I had previously installed in /public_html (imported a copy of the database, copied the catalog and admin files etc) however the new stores are really slow (every page including the home page take 10 times longer to load than the copied store). The number of products (about 200) and categories (about 10) haven't increased. Does anyone have any idea why the new stores are so much slower than the copied store which I have now deleted?
These are the steps I followed to install opencart in the two sub directories:
1. Create a folder (e.g. storefs) in /public_html
2. FTP contents of C:\TEMP\test_project\Opencart v1.5.6.4 install\opencart-1.5.6.4\upload to the new folder
3. Rename config-dist.php to config.php and admin/config-dist.php to admin/config.php
4. Create a blank database cPanel -> My SQL Databases (e.g. mysnack_asyoulikeit)
5. Visit the store homepage e.g. http://www.subdomain.example.com/storefs/
You should be taken to the installer page. Follow the onscreen instructions
6. After successful install, delete the /install/ directory and check paths in config.php and admin/config.php.
7. Copy folders in /public_html/catalog to /public_html/new folder/catalog
8. Copy folders in /public_html/admin to /public_html/new folder/admin
9. Copy /public_html/image/data to /public_html/new folder/image/data
10. install vqmod - ftp vqmod folder and run install from browser (then copy vqmod xml files from main store)
11. Drop all the tables in the database
12. Import backup of main store database
13. Check correct database name and details are in config.php and admin\config.php (i.e. change any references to the backup database). Also check DB_PREFIX is correct - define('DB_PREFIX', 'fzr_');
Sorry, the speed issue was something silly. The copy install to a sub directory was fine and was only slow due to a call to a non existent js file in header.tpl! I'm not sure how or when I added the call but it's now been deleted and the store is nice and fast again...
Who is online
Users browsing this forum: No registered users and 8 guests