PrestaShop 9.1.x Bug: Newsletter Opt-in Fails in Back Office Customer Creation

PrestaShop 9.1.x Back Office Bug: Newsletter Opt-in Fails During New Customer Creation

At Migrate My Shop, we constantly monitor the pulse of the PrestaShop community, identifying common challenges and sharing insights to help merchants and developers navigate their e-commerce journey. A recent discussion on the PrestaShop forum highlighted a specific functional bug in PrestaShop 9.1.x that could impact customer data management and marketing efforts.

The Reported Issue: Newsletter Opt-in Discrepancy

A PrestaShop user, Empreinte, brought to light a peculiar behavior when creating new customer accounts directly from the back office. The issue, observed in PrestaShop 9.1.2, centers around the newsletter subscription option. When a new customer is being added, and the 'Lettre d'information' (Newsletter) option is explicitly set to "Oui" (Yes) during the creation process, this setting is not retained upon saving. After the customer record is saved, returning to the customer list or re-editing the newly created customer reveals that the newsletter option has reverted to an inactive state.

Empreinte's investigation pointed to a potential conflict or oversight related to official fix #40859, which was intended to enhance newsletter management within the back office. The core of their concern was logical: if the back office form provides the option to manage the newsletter subscription during customer creation, why is this value ignored? This discrepancy creates unnecessary manual steps and potential confusion for store administrators.

Community Confirmation and Practical Workarounds

The community quickly responded, with Knowband Plugins confirming the bug's presence in PrestaShop 9.1.3 as well. Their detailed feedback clarified that while the newsletter switch is indeed ignored during the initial creation of a customer from the back office, it functions correctly when editing an existing customer. This distinction is crucial, as it points to a specific flaw in the creation routine rather than a complete breakdown of the newsletter management feature.

Fortunately, immediate workarounds are available:

  • Create and Edit: The most straightforward solution is to first create the customer record without worrying about the newsletter setting. Once the customer is saved, re-open their profile for editing and then activate the 'Lettre d'information' option. This time, the change will persist.
  • Toggle from Customer List: Alternatively, after creating the customer, navigate to the main customer list. PrestaShop's customer list often provides a quick toggle switch for newsletter subscriptions directly on each customer's row. This can be used to activate the newsletter without needing to enter the full customer edit form.

Beyond these immediate fixes, Knowband Plugins rightly suggested a critical next step: opening an official issue on the PrestaShop GitHub repository. This ensures that the development team is aware of the bug and can prioritize a permanent fix in future updates.

Impact on Merchants and Data Integrity

While seemingly minor, such bugs can have tangible impacts on e-commerce operations. For merchants actively creating customer accounts (e.g., for phone orders, wholesale clients, or manual data entry), this bug introduces an extra, repetitive step. More significantly, it poses a risk to data integrity and marketing efforts. If administrators forget the manual workaround, customers who intended to opt-in for newsletters (or were manually opted-in by the merchant) might not receive them, leading to missed marketing opportunities and potentially inaccurate customer segmentation.

From a migration perspective, ensuring that all core functionalities work as expected post-migration is paramount. This bug highlights the importance of thorough post-migration testing, especially for back-office operations that directly impact customer data and marketing automation.

Migrate My Shop's Perspective: Best Practices for PrestaShop Management

At Migrate My Shop, we advocate for proactive PrestaShop management. This includes staying informed about community discussions, promptly applying official updates, and rigorously testing critical workflows after any platform changes or migrations. Encountering and reporting bugs like this one is a vital part of maintaining a healthy PrestaShop ecosystem. It underscores the value of community participation in identifying and resolving issues that affect daily e-commerce operations.

We encourage all PrestaShop users to contribute to the community by reporting bugs and sharing insights. Together, we can help refine and improve the platform for everyone.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools