Jump to content
  • 0

Multistore on Prestashop Cloud?


cossamus

Question

Hello,

 

is there any limitations on using the multistore feature on the Cloud?

 

I would like to start two new stores, a "main" store were i will be selling all my products and a second one to sell only one or two categories of the "main" store and share the stock.

 

Both stores would be on different subdomains (Prestashop Cloud), any guidance please?

 

Regards

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Sorry for the late reply I have been very busy these last two days. So this is how it is set up

 

Go in the multistore page once you have created your multishop

 

Then you've got to define the url for the 2nd shop

You have to go in the url option. in the 

my main shop is domain is: www.milleetunesoies.com

domain ssl is: www.milleetunesoies.com

virtual url is: 1001silks/

final url for my 2nd shop set up for the Uk market is www.milleetunesoies.com/1001silks/

 

 

It took me a while as I was putting the forward slash in front of the shop it has to be after like 1001silks/

 

If when you first create your shop you define it as a multishop then you can share the stock if you do it after like me you cannot share the stock. My sales are non existent so I can cope easily with this problem. Some of my items are unique I have only one of them so it would have been great to be able to share the stock between both shop but as I don't sell much I don't run the risk of selling the same item twice.

 

Once you've done this, please have a look at my website and give me your feedback on how it looks. That will be nice.

 

Any more problems just drop me a line. My email address is on my website.

 

hope this helps

Sof

[email protected]

  • Like 1
Link to comment
Share on other sites

  • 0

Hi,

 

You have two ways to do multistore with Cloud.

First, two cloud shops in your account. The point is you cannot share the database. These two shops are entirely independant from each other.

Second, one cloud shop where you can activate the multistore option. Same stock, two shops where you can chose the products you want to share in both. Multistore on PrestaShop works, but it could be complicated :)

 

So I would say that it depends on the number of products you want to share on both stores.

  • Like 2
Link to comment
Share on other sites

  • 0

Hello,

 

its the second option that is on my mind, and i am willing to test that solution.

 

For some reason, i cant access the frontoffice of the created shop on multistore. I tried configuring the shop url as subdomain and as a folder. Didn't work for me :unsure:

 

Regards

Link to comment
Share on other sites

  • 0

Hello,

 

Same problem here. I chose the second option: I activated the multistore.

 

The database for the 2nd store was copied from the 1st default store called "shop1", all this backoffice works fine in product, categories and all sections.

 

The problem is that there is no frontoffice for the 2nd store. When I set up the "main URL for this shop - Click here to set a URL for this shop", II write the URL what I want (shop2.pswebshop.com) I realised that this 2nd frontoffice is not created. It doesn't work, when I click the URL it takes me to the main user menu on "prestashop.com", specifically here -> https://www.prestashop.com/cloud/en/my-stores?init=listing

 

So I guess or there is a bug (as cassamus is experienced too), or open the frontoffice for this 2nd store is more complicated.

Is there any documentation? Do we need to change the htaccess as this manual says ->

https://wiki.bitnami.com/Applications/BitNami_PrestaShop#How_to_enable_PrestaShop_Multistore_support.3f

 

If the configuration of the multistore is more complicated, please say it in documentation. We can find nothing there -> http://doc.prestashop.com/display/CLOUD/Creating+a+PrestaShop+Cloud+store

http://doc.prestashop.com/display/PS16/Setting+a+shop%27s+URL

 

 

We hope your kind answer.

 

Best regards.

Edited by Alex Alcácer (see edit history)
Link to comment
Share on other sites

  • 0

1) Do we have to do that?

2) Do we have access to the "htaccess Apache server" from Prestashop Cloud?

 

If 1) yes and 2) no, how can we enable the multistore option???


"

That's all with the Administration console. Now you have to change the htaccess Apache configuration file for Prestashop. Open the /opt/bitnami/apps/prestashop/conf/htaccess.conf file and add the following lines there (changing example.com for the URL you used), inside the <IfModule mod_rewrite.c> section. This step is required because of our htaccess security policy

<IfModule mod_rewrite.c>
...
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule . - [E=REWRITEBASE:/prestashop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule . - [E=REWRITEBASE:/prestashop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^example.com:443$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]

...
</IfModule>

 

Finally, restart your apache server

sudo /opt/bitnami/ctlscript.sh restart apache
"


From -> https://wiki.bitnami.com/Applications/BitNami_PrestaShop#How_to_enable_PrestaShop_Multistore_support.3f

Edited by Alex Alcácer (see edit history)
Link to comment
Share on other sites

  • 0

"

Using a domain name

In case you want to use a different domain name for your supplemental shop rather than a subdomain/subfolder, you must configure your domain to point to the folder where PrestaShop is located. The URL rewriting is then done by PrestaShop itself.

Alternatively, you can create an alias for your domain name that redirects to absolute URL where your installation of PrestaShop is located. The way to achieve this depends on the control panel and options that your hosting company provides you with: "Alias" for Plesk, "Forward" for CPanel, "Aliasdomain" for ISPConfig, etc.

"

From -> https://prueba994.pswebshop.com/backoffice/index.php?controller=AdminShopUrl?token=b42253a71696baa840e5f126721b0d0f&ajax=1&action=OpenHelp

 

 

Do we have access to the control panel of the Prestashop Cloud hosting to do that?

How?

Is it Plesk, CPanel or ISPConfig?

 

Thanks,

Edited by Alex Alcácer (see edit history)
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...