Jump to content

Multistore Directories


Jack D

Recommended Posts

Hi everybody

 

Hoping this post is in the right forum.

 

After searching high and low on the net, guides and forums I have no choice but to submit this request due to the lack of info (or not finding the right info).

 

My prestashop site directory is public_html/prestashop

I created sites directory in prestashop for multistores, therefore

public_html/prestashop/sites/multistore1

public_html/prestashop/sites/multistore2

public_html/prestashop/sites/multistore3

 

These have been set up in prestashop multistore - no problem (used temporary index.htm to confirm it working)

 

I will use the default theme for all sites

 

Which folders, php and tpl files need to go into the multistore folder for each site (which are independant domains)

 

Kind regards

Link to comment
Share on other sites

you should only install Prestashop once in a single folder, like

/public_html/store/

 

Then after it is installed you would enable multi-store and add your stores.

Each store will point its physical URL to

/store/

 

The Virtual URL would be blank.

 

Then for each domain, you would configure them to have a docroot as /public_html.

That is to say each domain will have the same exact document root on your server.  You configure this outside of Prestashop, and you may need to work with your hosting provider to configure this.

Link to comment
Share on other sites

Tx for the reply Bellini

 

I respond to your reply in green:

 

you should only install Prestashop once in a single folder, like

/public_html/store/     This is how it is installed. The multistore folders under sites directory are empty exept for one test html file in each

 

Then after it is installed you would enable multi-store and add your stores.

Each store will point its physical URL to

/store/     This is not possible. 2 stores cannot have the same url. Unless you meant /store/multistore1/. I had it like this /sites/multistore1

 

The Virtual URL would be blank.

 

Then for each domain, you would configure them to have a docroot as /public_html.

That is to say each domain will have the same exact document root on your server.  You configure this outside of Prestashop, and you may need to work with your hosting provider to configure this.

This does not make sense to me. Each multistore would have identical php and tpl files. How can they all be in the same directory

 

Irrespective of the above, my original question still stands:

Which folders, php and tpl files need to go into the multistore folder for each site (which are independant domains)

 

The positioning of folders and directories are not my concern. Prestashop demands a folder for each new multistore. The folder for the new multistore is empty, prestashop does not fill it with anything: Therefor my original question

 

Link to comment
Share on other sites

Let's say you have 3 domains

domain1.com, domain2.com and domain3.com

 

You would configure your three domains to point to the same physical doc root on your server (/public_html/store)

 

Prestashop will take care of figuring out what domain is being requested, and associate that domain to the correct store.

 

You do not need to have the physical sub folders...It is not how multi-store works.

public_html/prestashop/sites/multistore1

public_html/prestashop/sites/multistore2

public_html/prestashop/sites/multistore3

Link to comment
Share on other sites

Understood

 

I have followed you rinstructions and installed into root directory with no subdirectories for sites
post-271231-0-52450200-1379485240_thumb.gif
 

I installed a multistore called domain1
post-271231-0-27857900-1379485254_thumb.gif

 

But when I configure the directory as instructed here:
You would configure your three domains to point to the same physical doc root on your server (/public_html/store)

and
Then for each domain, you would configure them to have a docroot as /public_html.

I get the following error:
post-271231-0-81372200-1379485275_thumb.gif

 

 

What must be added in the Physical URL?

Link to comment
Share on other sites

Bellini13

It has the same directory as the root site. Prestashop puts the forward slash there whether you want it or not, and inevitably you get the error i mentioned.

 

Once again I thank you for the reply. But until you can provide advice that actually WORKS that YOU HAVE USED YOURSELF - do not bother. If you READ my ORIGINAL post(which was complete and precise) and gave me a proper answer TO MY QUESTION, I would not be back at square one.

 

That brings me to the following which I have seen happen over and over in forums, so please consider these suggestions:

  • Reply with proper and complete suggestions and instructions
  • Give advice that ACTUALLY works that you have tried yourself
  • Don't say do this or do that, Say follow these instructions to do this and these instructions to do that.m Add pic and links
  • The quantity of your posts do not impress me, the quality does. Don't try to be smart or smug with an over bloated ego, that just makes you a regular asshole.

Now that that is off my chest.....

 

Could someone please READ the original post and answer the original question:

Which folders, php and tpl files need to go into the multistore folder for each site (which are independant domains)

 

I have been precise, polite and respectful, please return the courtesy.

 

Kind regards

Link to comment
Share on other sites

I have read your original post and provided exactly how to configure this.  You do not need to create sub folders, you just need to understand how it works, which I have already explained.

 

Now explain why you are using the same IP address 127.0.0.2 as the domain for both stores?  How do you intend Prestashop to distinguish between the 2 stores?

 

If you go to a browser and type http://127.0.0.2, where do you think it would resolve to?

 

If you are trying local testing you would be better to create host entries ie..

127.0.0.1      testdomain1.com

127.0.0.2      testdomain2.com

 

And then in the mutli store, instead of using an IP Address, use testdomain1.com and testdomain2.com

Link to comment
Share on other sites

GREAT!!!

 

The duplicate ip was an oversite on my part and I sincerely appologise for that.

 

With all due respect and gratitude I would like to thank you for your time, patience and assistance

 

I would like to summarise for my benefit and those referring to this post, and please correct me if I make a mistake. I am assuming that the multistore store has been enabled and defined and you are now ready to define your URL and directories for the new store

 

  • When you are here: post-271231-0-63967600-1379577155_thumb.gif do the following
    • Domain: - Type in the ip of your website that you are creating (If you don't know it, then ask your hosting provider).
    • Domain SSL: - I am not using this but I ASSUME that it is the same as your domain ip.
    • Physical URL; - Leave empty to keep it in the root of prestashop installation. As stated above you do not need sub-directories seeing that prestashop distinguishes sites automatically based on ip
      • ---- If you are importing a site from somewhere else I assume that you would then type in the folder directory to point to your site.
        For eg, if your site was imported to root/sites/domain1 you would enter /sites/domain1/ in the Physical URL
    • - I cannot advise on Virtual URL as I am not using it. This you would have to find in the prestashop guides and manuals.
Link to comment
Share on other sites

Good, I'm glad its working for you now.

 

The Virtual URL would be used if you had multiple stores on the same domain.  So if you had www.domain1.com, and did not want to use subdomains, you could do this

 

Store 1= http://www.domain1.com/store/store1

Store 2= http://www.domain1.com/store/store2

 

Where /store/ is the Physical URL that you installed Prestashop within.  Store1 and store2 are Virtual URL

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...