Post by Dentan80 » Wed Dec 24, 2014 6:53 am

hello,

I have a problem with the multi-storie, I have created five different subdomains and I have created new storie in the root opencart and created each subdomain but the problem is that subdomains are not stories, subdomain has no contact with the root where opencart is installed. should I change something in htaccess? need help with?

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by labeshops » Wed Dec 24, 2014 7:31 am

http://forum.opencart.com/viewtopic.php?t=27538

You need to set the document root for each store to where you have opencart installed.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Selective555 » Wed Dec 24, 2014 5:08 pm

Each store needs its own folder.

Example:

Code: Select all

www.yourwebsite.com/store_name_one
www.yourwebsite.com/store_name_two
www.yourwebsite.com/store_name_three
www.yourwebsite.com/store_name_four
www.yourwebsite.com/store_name_five
when you set up subdomains, all you are doing is creating a second alternative path for those files so they can appear and be used like this.

Code: Select all

www.store_name_one.yourwebsite.com
www.store_name_two.yourwebsite.com
www.store_name_three.yourwebsite.com
www.store_name_four.yourwebsite.com
www.store_name_five.yourwebsite.com
You should first, just create the folders and then set up the subdomains for them second.

To set up your subdomains, log in to your cpanel,
then under "Domains" click on "Subdomains",

then pick your domain,

Code: Select all

yourwebsite.com
and type in your subdomain before it,

Code: Select all

store_name_one
then in your "Document Root" type the original path to the actual folder

Code: Select all

www.yourwebsite.com/store_name_one
then click "Create", and then you should have a working subdomain.

Before you use Subdomains, always test them to make sure they are set up correctly.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Dentan80 » Wed Dec 24, 2014 7:10 pm

I can not change the document root on my subdomain.
I wonder if I can insert file in the subdomain folder. I
think you should add something more to .htaccess, to root opencart do not know of subdomains.

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by Selective555 » Wed Dec 24, 2014 7:19 pm

Dentan80 wrote:I can not change the document root on my subdomain.
I wonder if I can insert file in the subdomain folder. I
think you should add something more to .htaccess, to root opencart do not know of subdomains.
The subdomain set up is different from the actual name of the folder.

You can change the folder name, but that alone will break the subdomain, the subdomain isn't automatic. After the folder name is changed, you must then repeat the steps for creating an all new subdomain for that name change, and delete the old subdomain as well. NOTE: You must delete subdomains on the page where you create subdomains. Deleting a subdomain does not delete the root directory, it only removes the path to it as a subdomain.

Take care of that first, then you can trouble shoot the other files afterwards.

Then worse case scenario, you can always change the folder name back, and set up the subdomain again.

To change file names, you cannot just click on them and change the name, or else you'll get an error saying you cannot change the name. To change the name, just click on it so it is highlighted (not where you can change the letters), and then click "Change Name" in the top menu, and then you can type in a new name and save it. Then the name will be changed.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Dentan80 » Wed Dec 24, 2014 7:54 pm

I do not think you want me to redirect the subdomain to root folder? Do you have pics to prove or videos?

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by Selective555 » Wed Dec 24, 2014 8:20 pm

Dentan80 wrote:I do not think you want me to redirect the subdomain to root folder? Do you have pics to prove or videos?
You can redirect it to whatever you want.

If you plan on using the subdomain, then use the subdomain.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by labeshops » Wed Dec 24, 2014 8:28 pm

Selective555 wrote:Each store needs its own folder.
Wrong. Subdomain or addon domain folders are NOT used at all in a multistore opencart setup.You do NOT want to have any redirects set up.

Follow exactly the directions in the link I gave you and I guarantee it will work - I have 30 multistores all running from labeshops.com

Does your host have cpanel? If so, you can change the document root as shown in the step by step guide I linked. If not, let us know what your host has for you to set up things like the subdomains.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Selective555 » Wed Dec 24, 2014 8:38 pm

labeshops wrote:
Selective555 wrote:Each store needs its own folder.
Wrong. Subdomain or addon domain folders are NOT used at all in a multistore opencart setup.You do NOT want to have any redirects set up.

Follow exactly the directions in the link I gave you and I guarantee it will work - I have 30 multistores all running from labeshops.com

Does your host have cpanel? If so, you can change the document root as shown in the step by step guide I linked. If not, let us know what your host has for you to set up things like the subdomains.
You posted a link to OC 1.5 so we should keep the topic here, and up to date.

About multi stores, are they all in the same folder then or does each store have its own folder? And if every shop has its own folder, are the folders inside another shop folder? Does each store have its own database? or do they all share one database together?

I haven't used the "store" option in admin yet, but I've been setting up different shops in their own folders, each with their own database.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by labeshops » Wed Dec 24, 2014 8:45 pm

Selective555 wrote:
labeshops wrote:
Selective555 wrote:Each store needs its own folder.
Wrong. Subdomain or addon domain folders are NOT used at all in a multistore opencart setup.You do NOT want to have any redirects set up.

Follow exactly the directions in the link I gave you and I guarantee it will work - I have 30 multistores all running from labeshops.com

Does your host have cpanel? If so, you can change the document root as shown in the step by step guide I linked. If not, let us know what your host has for you to set up things like the subdomains.
You posted a link to OC 1.5 so we should keep the topic here, and up to date.

About multi stores, are they all in the same folder then or does each store have its own folder? And if every shop has its own folder, are the folders inside another shop folder? Does each store have its own database? or do they all share one database together?

I haven't used the "store" option in admin yet, but I've been setting up different shops in their own folders, each with their own database.
As far as I know, the procedure for setting up multistores has not changed in 2.0. I haven't had a chance to do a test install of 2x yet, but in order for multistores to function, you have to set it up as shown in the link I posted.

The only folder that is needed is wherever you have opencart actually installed - in my case, the root of labeshops.com - and setting it up in a root folder is recommended. All stores run from the same opencart files in that one location and from the same database - that is the function of multistores letting you have one master set of products, categories, customers, etc, that you can use across as many stores as you want. By changing the document root of each subdomain/addon domain, it is telling the domain to use the files found in opencarts folder.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Dentan80 » Wed Dec 24, 2014 9:07 pm

I can not change or write to root. How should I point subdomain to main domain? should I choose alias?


https://www.dropbox.com/s/e85wr5cvpq1qg ... .01.33.png

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by labeshops » Wed Dec 24, 2014 9:21 pm

You should be able to do it somehow. You might want to check with your web hosts to find out how or perhaps have them do it for you.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Selective555 » Wed Dec 24, 2014 9:24 pm

labeshops wrote:The only folder that is needed is wherever you have opencart actually installed - in my case, the root of labeshops.com - and setting it up in a root folder is recommended. All stores run from the same opencart files in that one location and from the same database - that is the function of multistores letting you have one master set of products, categories, customers, etc, that you can use across as many stores as you want. By changing the document root of each subdomain/addon domain, it is telling the domain to use the files found in opencarts folder.
Oh... so... multi store option is only for when you have a shop, and want many different shop names and themes for it, like for example, if you sold men's and women's clothing, you could create 3 shops, one showing all items in the shop, then another showing just mens clothing, and another with just women's clothing. Yet it's all really the same shop and same shopping cart.

Is this correct?

See... I was talking about running actual different stores! Absolutely nothing to do with each other, and payments made to different people. Which isn't what the multi store function is made for. Is this correct?

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Dentan80 » Wed Dec 24, 2014 9:47 pm

I got help from hosting and when I create subdomain then I will create it with the alias and point it to the main domain and the problem is solved but I have to test it.

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by labeshops » Wed Dec 24, 2014 11:24 pm

Selective555 wrote:
labeshops wrote:The only folder that is needed is wherever you have opencart actually installed - in my case, the root of labeshops.com - and setting it up in a root folder is recommended. All stores run from the same opencart files in that one location and from the same database - that is the function of multistores letting you have one master set of products, categories, customers, etc, that you can use across as many stores as you want. By changing the document root of each subdomain/addon domain, it is telling the domain to use the files found in opencarts folder.
Oh... so... multi store option is only for when you have a shop, and want many different shop names and themes for it, like for example, if you sold men's and women's clothing, you could create 3 shops, one showing all items in the shop, then another showing just mens clothing, and another with just women's clothing. Yet it's all really the same shop and same shopping cart.

Is this correct?

See... I was talking about running actual different stores! Absolutely nothing to do with each other, and payments made to different people. Which isn't what the multi store function is made for. Is this correct?
The multi stores can be anything you want - variations of the same products or totally different products per store. And there are mods so you can created different payment methods per store if you wish too. Take a look at my stores in my footer links and all my stores that are linked from labeshops - some share products, some are totally uniquq products for a single store - I can do them any way I want. But all have the same backend admin and 1 database.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Selective555 » Wed Dec 24, 2014 11:54 pm

labeshops wrote:The multi stores can be anything you want - variations of the same products or totally different products per store. And there are mods so you can created different payment methods per store if you wish too. Take a look at my stores in my footer links and all my stores that are linked from labeshops - some share products, some are totally uniquq products for a single store - I can do them any way I want. But all have the same backend admin and 1 database.
But if you put everything in one folder, and only use one database, then don't you screw yourself when you have to move one of those stores to another web host? It just seems like it might be poorly set up in opencart if it forces all shops items to share folders with other store folders. Same with database. If you let different people manage different stores, wouldn't it be too risky to let one person have the possibility to destroy other peoples stores if they mess up their own? Bad scripts or wrong things being deleted could carry over into other stores.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Dentan80 » Wed Dec 24, 2014 11:55 pm

How to create any multi great variety of languages ​​and currencies? do it from the system? or need for the module

New member

Posts

Joined
Mon Jan 09, 2012 4:49 pm

Post by labeshops » Thu Dec 25, 2014 12:04 am

You can set a default language and currency for each store in admin > settings for that store and add others as well. Not something I've messed with myself since I only speak English, but it's available to do without a mod.
Last edited by labeshops on Thu Dec 25, 2014 12:07 am, edited 1 time in total.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by labeshops » Thu Dec 25, 2014 12:06 am

Selective555 wrote:
labeshops wrote:The multi stores can be anything you want - variations of the same products or totally different products per store. And there are mods so you can created different payment methods per store if you wish too. Take a look at my stores in my footer links and all my stores that are linked from labeshops - some share products, some are totally uniquq products for a single store - I can do them any way I want. But all have the same backend admin and 1 database.
But if you put everything in one folder, and only use one database, then don't you screw yourself when you have to move one of those stores to another web host? It just seems like it might be poorly set up in opencart if it forces all shops items to share folders with other store folders. Same with database. If you let different people manage different stores, wouldn't it be too risky to let one person have the possibility to destroy other peoples stores if they mess up their own? Bad scripts or wrong things being deleted could carry over into other stores.
You don't need multiple hosting accounts. Just one so not sure why you would "have to move" one to another host??? You just need a hosting account that supports multiple domains &/or subdomains.

The multivendor mod lets people manage different stores I believe - haven't messed with it since I do everything myself.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Selective555 » Thu Dec 25, 2014 12:21 am

labeshops wrote:You don't need multiple hosting accounts. Just one so not sure why you would "have to move" one to another host??? You just need a hosting account that supports multiple domains &/or subdomains.

The multivendor mod lets people manage different stores I believe - haven't messed with it since I do everything myself.
If you are a hosting web site for store owners, you need to have boundaries.

Imagine if you logged into FaceBook, and had access to every profile on the web site.

Now do you understand?

Now imagine you decided you wanted to take your shop else where, then you should be able to without being stuck in a network or without taking everyone with you!

Nothing lasts forever, everyone needs a back up plan, and if you put all of your eggs in one basket, you'll lose them all if anything ever happens. If one person decides to cancel the web hosting or that they have to relocate their web hosting, then other shop owners shouldn't have to suffer from that.

So the multi shop feature is actually a very bad idea, a disaster waiting to happen. If it is used with stores that have nothing to do with each other when combining them into one folder.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm
Who is online

Users browsing this forum: No registered users and 47 guests