Search the Community
Showing results for tags 'verify'.
-
Greetings, i'm fairly new to prestashop, and I've been trying to implement a feature to the website I'm currently working on, and I'm stuck with a few issues I can't seem to overcome When a new customer registers in the website, he is "by default" disabled, so the admin can verify his account, and giving him acess to his account, so he could start buying from the store. I've managed to do the disable/enable part of it, but I'm strugling on sending an e-mail notifying the user he's now able to shop. I've tried creating the templates, as well as the code I'll leave bellow ///home/store/public_html/override/classes/Customer.php class Customer extends CustomerCore { /** * Set the active status of the customer and send an activation email if activated. * * @param bool $status The new active status of the customer * @return bool Whether the update was successful */ public function setActive($status) { $this->active = (bool)$status; $result = $this->update(); if ($result && $status) { // If the customer is being activated, send the activation email $this->sendActivationEmail(); } return $result; } /** * Send the account activation email to the customer. */ private function sendActivationEmail() { // Prepare email data $template = 'account_activated'; // Email template name (without extension) $subject = 'A sua conta foi ativada'; // Subject of the email $to = $this->email; // Customer's email $toName = $this->firstname . ' ' . $this->lastname; // Customer's full name // Prepare email variables $data = array( '{firstname}' => $this->firstname, '{lastname}' => $this->lastname, '{shop_name}' => Configuration::get('PS_SHOP_NAME') // Shop name from the configuration ); // Log for debugging purposes PrestaShopLogger::addLog('Sending activation email to: ' . $to, 1); // Send the email using the Mail::Send method $result = Mail::Send( (int)$this->id_lang, // Customer's language ID $template, // Template name $subject, // Subject of the email $data, // Data to replace in the template $to, // Recipient's email $toName, // Recipient's name null, // From email (null to use default) null, // From name (null to use default) null, // File attachment null, // Mode (not required) _PS_MAIL_DIR_, // Mail directory (default for templates) false, // Don't use SMTP debugging (int)$this->id_shop // Shop ID ); // Log the result of the email sending if (!$result) { PrestaShopLogger::addLog('Error sending activation email to: ' . $to, 3); } else { PrestaShopLogger::addLog('Activation email sent successfully to: ' . $to, 1); } } } What am I missing? Is this the optimal way to do so? Could I , perhaps, do it with guest mode? Thanks in advance
- 4 replies
-
- prestahop 8.2
- user
-
(and 1 more)
Tagged with:
-
Hi, i was wondering how can i add a confirm field of the email when a new customer register? Its because some customer enter their email bad and they dont even notice. (i want something like the screenshot but for email) Can you please tell me which files i need to modify and what code i need to enter? I´m using prestashop 1.6.1.18 default theme Thanks for all your help
-
Controllare il formato dell'email nel modulo di registrazione o modulo di contatto. Esso consente inoltre per bloccare un dominio di posta elettronica(hotmail.com, yahoo.es, ecc.) . Multilingue Cross browser Link http://catalogo-onlinersi.net/it/aggiungi-firefox/356-e-mail-check.html Non possiamo aggiungere altri moduli per problemi di spazio. Essere risolto al più presto. Visitate il nostro sito per il download
-
We are building a new site on Prestashop 1.5.4.1 and purchased the PayPal Pro 1.2.3 module. We have it setup (everything but the SSL at this time). Regardless if PayPal Pro module is set to Sandbox or Live (production), when we enter MasterCard information (not checked the other cards), it refreshes the page with a red line of text above the Credit Card info box that reads: "Error, please verify the card information" We've checked log files and see nothing logged for this event. We are currently in a development environment, so the URL isn't what the final site URL will be, and we don't have the SSL setup yet. Any help would be appreciated! Thanks, Brandon
-
Prestashop 1.6.0.8 Hi Easy question for you. How can I get customers to verify their registration and until they do so they cannot login. I thought this would be standard with prestashop by now, but I can't seem to find anywhere. Can someone point me in the right direction? Thanks for any and all help.
-
Anyone know of a good age verification popup to use on the front end of my site.... Have one now,, but can't put in my logo, and it drops you off at the bottom of the site once you verify your age. Or does anyone know how to fix it... have tried to get the developer to help me, but he does not return emails to me. Thanks in advance,,, Brian
-
Hello! I am in the process of setting up a shop for a distributor. His situation is different in that he needs to be able to look over an order and add shipping manually. Something like this 1. order is placed 2. owner is notified of new order 3. order is assessed and shipping is calculated 4. shipping added to order 5. customer notified 6. order paid. Step 3 is the important part. Is it possible to have the order set to a "on hold" state after submitting?