Hello PrestaShop Community,
I’m excited to share a free Email Verification Module for PrestaShop 8.2.1, designed to enhance customer registration security by requiring email verification. This module was born out of a need for an affordable solution. Thanks to the power of Grok3, created by xAI, I was able to develop and debug
this module efficiently!
Overview:
The `emailverification` module ensures new customers verify their email address before their account is activated. Upon registration at `yourshopurl.com/index.php?controller=authentication&create_account=1`, it sends a custom verification email with a unique link, sets the customer’s `active=0`, and activates the account (`active=1`) when the link is clicked. It integrates seamlessly with PrestaShop’s registration process, using server-side logic to avoid reliance on AJAX or JavaScript.
Key Features:
- Sends a verification email alongside PrestaShop’s default `account` email.
- Prevents login until email is verified via a secure token.
- Creates a `ps_email_verification` table to store customer IDs and tokens.
- Includes error handling for invalid/expired links with a custom error page.
- Supports English translations and customizable email templates.
- Lightweight and compatible with PrestaShop 8.x.
GitHub Repository:
You can find the full module, including all files and a detailed tutorial, on GitHub: https://github.com/kkula9999/emailverification. The repository includes the module’s code, folder structure, and a step-by-step guide to set it up.
Why This Module?:
Many email verification modules on the PrestaShop Addons Marketplace costy OR the free module was obsoleted, which can be prohibitive for small businesses or hobbyists. This free, open-source alternative delivers the same core functionality—secure email verification—without the hefty price tag. It’s a straightforward, server-side solution that I built to address my own needs and share with the community.
Known Issue:
After registration, the page does not automatically redirect to the homepage and remains on the registration page. This does not affect functionality, as the verification email is sent, and the account activates upon link click. There’s no ETA for a fix yet, but it’s on my radar. Contributions or suggestions via GitHub are welcome!
Future Plans:
If time permits, I plan to explore integrating a referral program module to complement this one, further enhancing customer engagement features for PrestaShop stores.
Powered By:
This module was developed with the assistance of Grok3, created by xAI, whose insights were invaluable in overcoming challenges like missing logs and form submission issues. (Tried on ChatGPT, it crashed my shop modules lol, so snapshot and backup is RECOMMENDED)
I’d love to hear your feedback, suggestions, or any issues you encounter. Feel free to contribute to the GitHub repository or share your experience here. Let’s make PrestaShop even better together!
Best regards,
kenixTrueno