The customer form consent message is installed with the account creation text
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Read the module’s install() method and compare the psgdpr_customer_form branch with psgdpr_creation_form; the issue identifies the preset message property and the 1.4.x and dev branches involved. Review the old customer message, including its placeholder and wording, before deciding what text should be restored. Done means new installs receive the intended customer form message on both branches.
Written by the indexing model from the issue text.
Description
Description
On install, psgdpr pre-fills two consent messages per language: PSGDPR_CREATION_FORM (account creation form) and PSGDPR_CUSTOMER_FORM (customer account form). Both receive the account creation text:
I agree to the terms and conditions and the privacy policy
The customer form had its own text, Psgdpr::$presetMessageAccountCustomer (added in ceda349, "Add translations for preset messages", translated in 15 languages):
By submitting this form, I accept that the data entered is used by xxxxx so they can (i) acknowledge your request, (ii) replay and, if necessary, (iii) manage the contractual relationship that may result.
It has not been read since 7ddc02c ("Some clean", 2018-12-11), which rewrote the psgdpr_customer_form branch of install() with $presetMessageAccountCreation instead of $presetMessageAccountCustomer:
} elseif ($value === 'psgdpr_customer_form') {
foreach ($languages as $lang) {
- if (array_key_exists($lang['iso_code'], $this->presetMessageAccountCreation)) {
- $tmp[Tools::strtoupper($value)][$lang['id_lang']] = $this->presetMessageAccountCustomer[$lang['iso_code']];
- } else {
- $tmp[Tools::strtoupper($value)][$lang['id_lang']] = $this->presetMessageAccountCustomer['en'];
- }
+ $tmp[Tools::strtoupper($value)][$lang['id_lang']] = isset($this->presetMessageAccountCreation[$lang['iso_code']]) ?
+ $this->presetMessageAccountCreation[$lang['iso_code']] :
+ $this->presetMessageAccountCreation['en'];
The commit looks like a refactoring, so the change of text is most likely unintended.
- 1.4.x: the property is still there, unread. PHPStan on PrestaShop 9 reports it as never read; #257 keeps it and ignores that report, pointing here.
- dev (2.x): the property has been removed and
install()has the same code, so the customer text is gone there too.
Steps to reproduce
- Install psgdpr on a fresh shop.
- Back office > psgdpr > Consent: compare the "Customer account form" message with the "Account creation form" message.
Expected behavior
The customer account form is pre-filled with its own message, as before 7ddc02c.
Actual result
Both forms are pre-filled with the account creation message.
To decide before fixing
- Restoring the 2018 text is a behaviour change for new installs only (existing shops keep their saved message,
install()is the only writer). - The text needs a look before it comes back: it contains the
xxxxxplaceholder for the merchant's name and "replay" where "reply" is meant. - Which lines to fix: 1.4.x (restore the read), dev (restore the property and the read).
- Dominant language
- JavaScript
- Stars
- 34
- Forks
- 77
- Avg merge
- 12h 50m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from PrestaShop/psgdpr
-
[BUG] Deprecated: sha1(): Passing null to parameter #1 ($string) of type string is deprecated in psgdpr/psgdpr.php on line 701Possibly taken @boo-code claimed this 66 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PrestaShop/psgdpr#239 · 5 comments ·
-
[BUG] PHP Deprecated: sha1(): Passing null to parameter #1 ($string) of type string is deprecatedPossibly taken @boo-code claimed this 66 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
PrestaShop/psgdpr#236 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
PrestaShop/psgdpr#263 · 2 comments ·
-
A failed customer search offers the email erasure, which logs a deletion without deleting the customer accountPossibly taken @mattgoud claimed this 17 days ago. Open
PrestaShop/psgdpr#261 · 1 reaction · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
PrestaShop/psgdpr#260 ·
All issues in PrestaShop/psgdpr
Similar issues
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
0xPolygon/polygon-token-list#851 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cline/mcp-marketplace#4171 ·
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Add a languageOpengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100