• Closed by: Marek
  • Closed on: 30.03.18, 15:12
  • Reason: Closed
  • Comment: Glad to help!

Ticket #11729 - Multistore - cannot assign different homepage per shop

Hi,

We have a multistore with 2 shops, and would like to design a different homepage lay-out per shop, using the Layout builder. After switching to shop # 2, the pagebuilder keeps on showing the loading icon so the lay-out cannot be choosen of edited.
See attached file for details.

Hope you can help us out!

Kind regards,
Aris Schlingmann

Comments

Marek 22 Feb 2018, 15:43

Strange to read about that, because our demo works in multistage mode and there was no ant issues with page builder. Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office to check out the issue

Aris Schlingmann 23 Feb 2018, 08:35

I have entered the BO login information in my profile.
Hope you can solve it!

Marek 23 Feb 2018, 10:21

I see only blank page here http://aos.comm-on.nu could you please check it out?

Aris Schlingmann 23 Feb 2018, 10:48

Yes, the shop is in maintenance mode and shows a blank screen.
I have added your IP (87.239.222.109) to the maintenance IP list.

As it is a multistore, the URL to the second store is: http://phs.comm-on.nu/ For this store we would like to design an other home page lay-out using the page builder.

Marek 23 Feb 2018, 11:32

I see the issue in the whole your back office. It’s no related to the theme, and I didn’t find a quick fix. try to ask prestashop community to help you

Aris Schlingmann 23 Feb 2018, 13:40

I see, thanks for the information, I wasn’t aware of this.
Somehow the one shop is trying to access the URL‘s of the other shop… I’m going to investigate it…

Aris Schlingmann 05 Mar 2018, 10:51

I have investigated the issue and found that creating a backoffice URL in PS 1.7 is slightly different than in PS 1.6. See classes/Link.php, getAdminLink().

In 1.6 a relative URL ‘index.php?controller=…’ is created, where in 1.7 a full URLhttp://shop.com/adminXXXX/index.php?controller=…’ is created. The full URL is created from the base URL of the current shop.
So when logging in into the BO of shop A, using the URL of shop A, then switching to shop B via the multistore switch, a full URL to shop B is created. This explains the errors in the console, as it is not allowed to load resources using the URL shop B from shop A.

I have created an override on the getAdminLink() method to prevent this and now the error messages are gone and your page builder is working fine in multistore.

I’m wondering if I am the only one who experience this issue. Also tested it on a clean PS 1.7 installation and the issue is there. Opened a topic on the PS forum, if you’re interested: https://www.prestashop.com/forums/topic/667138-17-multistore-using-wrong-url/

Thanks for your help!

Marek 05 Mar 2018, 11:10

Yes, I see the issue first time. Maybe you have some unique server configuration. I’ll follow the topic to know the reason in case someone describe that

Aris Schlingmann 30 Mar 2018, 10:43

This issue is related to a PrestaShop bug, see http://forge.prestashop.com/browse/BOOM-3607 As it is not related to the Venedor theme, the issue can be closed.