PrestaShop / PrestaShop/PrestaShop
ps_emailalerts - sometimes is missing "mails" folder in specific language
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 9.2k
- Forks
- 5.1k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 53
Description
Prerequisites
- I understand and accept the project's code of conduct.
- I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
I don't know, how it happened, but if customer have more languages, sometimes there is specific language missing in folder "mails" in module "ps_emailalers".
And then, mail never arrived, because of missing template in specific language.
I don't have more informations. I don't know how to reproduce, but I was solving this problem about 5 times this year.
Everytime I solved it simple by copying english folder mails to specific language.
for example:
/modules/ps_emailalerts/mails/en/ -> /modules/ps_emailalerts/mails/sk/
I don't know, how this happened, so I am opening issue for investigating this problem or get to know for future solution.
Expected behavior
"mails" folder in module "ps_emailalerts" should have all languages or use default language if missing language at least.
Steps to reproduce
I don't know how to reproduce this problem :(
PrestaShop version(s) where the bug happened
8.1.7
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
ps_emailalerts - latest
Your company or customer's name goes here (if applicable).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the module path modules/ps_emailalerts/mails/, comparing the en and sk language template folders mentioned in the report. Investigate how ps_emailalerts selects or creates language-specific mail templates; reproduction is not provided. Done means missing-language templates no longer prevent delivery, either through complete folders or the default-language fallback described in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100