Fix product coverage e-mail being send to wrong recipient#152
Open
gennaris wants to merge 1 commit into
Open
Conversation
gennaris
commented
Oct 12, 2025
| Questions | Answers |
|---|---|
| Description? | Misused $this->merchant_oos_emails variable was preventing the correct recipient(s) from receiving the product out-of-stock notification email. The email was sent to the shop admin instead of the address(es) configured in the module. |
| Type? | bug fix |
| BC breaks? | no |
| Deprecations? | no |
| Fixed ticket? | n/a |
| How to test? | Configure one or more email addresses in the Email alerts module (section Out of stock > Send to). Trigger an out-of-stock event (e.g. by reducing product quantity below the threshold). Before applying this patch, notice that the email is sent to the shop admin instead of the configured address(es). After applying this patch, the notification should be correctly sent to the configured recipient(s). |
|
Hello @gennaris! This is your first pull request on ps_emailalerts repository of the PrestaShop project. Thank you, and welcome to this Open Source community! |
Author
|
I just realized that this PR, while technically valid, has no actual effect in PS 1.7 > since the advanced stock management feature was removed, and that part of the code is never reached. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.