Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with psgdpr and ps >=1.7.8 #122

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

marsaldev
Copy link
Contributor

@marsaldev marsaldev commented Nov 23, 2022

Questions Answers
Description? Since PrestaShop 1.7.8 seems to be required to implement the hook registerGDPRConsent hook and an empty listener HookRegisterGDPRConsent, otherwise the module is not psgdpr module compliant. This PR fix the compatibility of ps_emailalerts.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#30379
How to test? Fresh install of latest PS 1.7.8 or PS 8.0 or PS 8.1, the module is not showed in the psgdpr module, and the gdpr checkbox are not displayed in the product page. This PR fix it. Follow PrestaShop/PrestaShop#30379 for more details

@marsaldev marsaldev added the bug label Nov 23, 2022
@marsaldev marsaldev added this to the 2.4.1 milestone Nov 23, 2022
@marsaldev marsaldev self-assigned this Nov 23, 2022
upgrade/upgrade-2.4.1.php Outdated Show resolved Hide resolved
upgrade/upgrade-2.4.1.php Outdated Show resolved Hide resolved
Co-authored-by: Mathieu Ferment <mathieu.ferment@prestashop.com>
@marsaldev
Copy link
Contributor Author

thanks @matks !
I think I'll open a new PR to update all the license headers in one time. 😊

Copy link

@hibatallahAouadni hibatallahAouadni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @marsaldev

Thanks for your PR 🚀

- PS 1.7.8.7 when the customer log in ✔️

image

- PS 1.7.8.7 when the customer log out ✔️
image


- PS 8.0.0 when the user is log in ✔️

image

- PS 8.0.0 when the user is log out ✔️

image

But as you can see the GDPR checkbox is not displayed because of this regression on 8.0.0 PrestaShop/PrestaShop#30348 (which is out of scope of this PR)

So, LGTM, QA ✔️

image

Thanks!

@matks
Copy link
Contributor

matks commented Nov 29, 2022

Thank you @marsaldev

@matks matks merged commit f1ae7c5 into PrestaShop:dev Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ps_mailalerts v2.4.0 + psgdpr v1.4.2 ( on PS 1.7.8.7) compatibility problem
3 participants