Fix: Problem with the newsletter subscription module - #114
Conversation
Codencode
commented
Apr 9, 2025
| Questions | Answers |
|---|---|
| Description? | see: PrestaShop/PrestaShop#38446 |
| Type? | bug fix |
| BC breaks? | no |
| Deprecations? | no |
| Fixed ticket? | Fixes PrestaShop/PrestaShop#38446. |
| How to test? | see: PrestaShop/PrestaShop#38446 |
|
@kpodemski Thanks |
|
Hi @Codencode! Can you need rebase your branch? 🙏 |
…the user also subscribes to the newsletter.
f21ee01 to
9eab6e0
Compare
|
Hi @boherm, Thanks a lot! |
|
Hello @Codencode, I tested your PR and it's good for me! 🎉 Thanks! PR-2025-04-28_15.44.46.mp4 |
|
Hello @Codencode I checked the old issue, this one PrestaShop/PrestaShop#17097, and it seems that this part of the code: Prevents running this code: while it may be good to skip it for existing subscribers, it should work for newly registered accounts and the confirmation email should work what do you think? |
Hi @kpodemski, |
|
I created the PR; actually, the code needed to be changed because those instructions should only be executed if the email is valid. There were also some unnecessary code duplications. PR: #121 |