Prestashop: [BOOM-4432] Link widget : doesn't work in multiple shops

Created on 22 Aug 2018  ·  13Comments  ·  Source: PrestaShop/PrestaShop

This issue has been migrated from the Forge. Read the original ticket here.

  • _Reporter:_ malorie
  • _Created at:_ Wed, 6 Dec 2017 15:15:20 +0100

This module doesn't work in multiple shops.

Only 1 shop is ok, the others ars the same links... It's impossible to have different links.

  • How to reproduce the issue ?

N/A

1.7.2.0 1.7.4.0 1.7.4.1 1.7.6.3 Bug Link widget Minor Modules & Themes Multistore Must-have To Do Topwatchers

Most helpful comment

Hi, I'm using prestashop 1.7.2.4 and I'm searching for a fix for it to. It's been a while this issue is opened and it's strange that no fix exist. Nobody use multistore? Or nobody use ps_linklist? Or someone have fix it and don't share it? I'will work on that fix and keep you informed if it's working.

All 13 comments

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ salma.moakhar
  • _Created at:_ Wed, 6 Dec 2017 15:41:48 +0100

Hi Malorie,

I manage to reproduce the issue with the last version : 1.7.2.4.
We will see how to fix it.

Thanks & best regards, Salma

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ marion_francois
  • _Created at:_ Thu, 7 Dec 2017 11:14:43 +0100

When a new block is added, the merchant should be able to choose to which shop(s) the block will be associated thanks to the “shop association block” component.

This way the block will be displayed in FO only for the selected shop(s)

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ habros
  • _Created at:_ Sat, 6 Jan 2018 07:28:08 +0100

Is there any workaround for this issue? Or alternative solution? Can't really do multistore without it.

This comment has been migrated from the Forge. Read the original comment here.

  • _Author:_ reho
  • _Created at:_ Sun, 7 Jan 2018 21:18:11 +0100

Dave, I did some modifications to make work the public part of it. Look at the comments section of the duplicate issue (BOOM-4269)

You can edit the pages in a database manager.

The issue when I enable multistore, whatever if I select a specific shop or "all shop", I have as many links as shops and as many "Content pages" is solved by https://github.com/PrestaShop/ps_linklist/pull/48

It stays this issue with linkwidget when multistore is enabled:
the merchant should be able to choose to which shop(s) the block will be associated thanks to the “shop association block” component.

Reproduced on PS v1.7.5.0 + 1.7.5.1 too (with ps_linklist v3.0.2)

This is happening PS v1.7.5.1 - Problem seems to be only related to opening the front end shops using top right hand link.

I have this same issue in 1.7.6.1. Is there still no fix for it?

Hi, I'm using prestashop 1.7.2.4 and I'm searching for a fix for it to. It's been a while this issue is opened and it's strange that no fix exist. Nobody use multistore? Or nobody use ps_linklist? Or someone have fix it and don't share it? I'will work on that fix and keep you informed if it's working.

Up

It is probably not fixed yet because it is quite easy to fix the front part (as mentioned earlier):

diff modules/ps_linklist/src/LegacyLinkBlockRepository.php modules/ps_linklist/src/LegacyLinkBlockRepository.php.orig 
74,75c74
<                     JOIN {$this->db_prefix}link_block_shop lbs on cb.`id_link_block`=lbs.`id_link_block`
<                     WHERE `id_hook` = $id_hook and `id_shop`={$this->shop->id}
---
>                     WHERE `id_hook` = $id_hook

The rest can be done via DB and the admin interface.

It is probably not fixed yet because it is quite easy to fix the front part (as mentioned earlier):

diff modules/ps_linklist/src/LegacyLinkBlockRepository.php modules/ps_linklist/src/LegacyLinkBlockRepository.php.orig 
74,75c74
<                     JOIN {$this->db_prefix}link_block_shop lbs on cb.`id_link_block`=lbs.`id_link_block`
<                     WHERE `id_hook` = $id_hook and `id_shop`={$this->shop->id}
---
>                     WHERE `id_hook` = $id_hook

The rest can be done via DB and the admin interface.

Hello, this is just for frontend, we need fix because lot of people use the back-office.

I agree absolutely that this should be fixed officially. I just wanted to post a fix for the people who can not/will not wait till that happens. Those can still use the back office (admin interface) to create link lists, and then specify for which shops they are in the link_block_shop table in the DB.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matks picture matks  ·  3Comments

centoasa picture centoasa  ·  3Comments

vincent-dp picture vincent-dp  ·  3Comments

wikao2 picture wikao2  ·  3Comments

zuk3975 picture zuk3975  ·  3Comments