[Idea] Add the <textarea> element among the available types for the FromField class
| Questions | Answers |
|---|---|
| Description? | Added the textarea type |
| Type? | new feature |
| BC breaks? | no |
| Deprecations? | no |
| Fixed ticket? | Fixes https://github.com/PrestaShop/PrestaShop/discussions/38591 |
| Sponsor company | @Codencode |
| How to test? | Attached test module that adds the new field to the account creation form. |
Installing the test module adds the new field to the account registration form, as shown in the attached screenshot.
Test module: idea_38591.zip
cc @tblivet
Hello @SiraDIOP,
No, it’s not normal. There could be 2 issues:
- You didn’t apply the PR correctly.
- You didn’t recompile the templates.
Case 1
Check that the new instructions found here are present in the file themes/hummingbird/templates/_partials/form-fields.tpl:
https://github.com/PrestaShop/hummingbird/pull/698/files
Case 2 In Admin > Advanced Parameters > Performance, make sure that Template compilation is not set to Never recompile template files. If it is, you need to clear the cache (use the Clear cache button on the same page).
Hello @SiraDIOP, I'm not very experienced with Linux shell, but I believe there might be an issue with this line:
git prc origin 698 dev
However, to make sure the PR was properly imported, you just need to verify that in the file themes/hummingbird/templates/_partials/form-fields.tpl
you can find the instruction:
{elseif $field.type === 'textarea'}
at line 158.
Hello @Codencode,
Thanks for the PR, I hadn't installed the PR correctly, but it's fine now.
Everything is ok for me :)
Thanks