• Closed by: Alex
  • Closed on: 31.01.17, 14:18
  • Reason: No answer from a customer

Ticket #9830 - View registered to the newsletter popup

Hello
I tested the newsletter popup provided with the theme PrestaShop venedor
But I can not find how to see people who have registered with this module.
How can I find this list?
I find many people in the database in the Prefix_newsletter table but not in the BO
Thank you

Comments

Alex 10 Aug 2016, 13:34

Hi.
You can see your subscribers with the module “Newsletter block” v2.x or “Newsletter” v2.x
Back Office > Modules > “Newsletter block” v2.x by PrestaShop

bandcconcept 10 Aug 2016, 13:40

Unfortunately I do not appear I noticed that I do not receive the email with the confirmation link is that why?
and if so what should I do.
at the beginning I was not getting mail so I copy the folder ‘en’ in / modules / pk_popup / mail / and have renamed fr I receive an email without confirmation link

Rafal Stepien 16 Aug 2016, 23:06

Same situation here, I’m only getting mails from pk_popup_conf.html template - without verification link or discount cupon, after some time, i’ve figured out thaht problem is in pk_popup.php
Code is prepared for sending verify and discounts, but newsletterRegistration method will always use SendConfirmationEmail. This is my modyfication of newsletterRegistration method (line 473 in pk_popup.php) for using Voucher sending:

	public function newsletterRegistration($email)
	{
		if (empty($email) || !Validate::isEmail($email)) {
			echo $this->l('Invalid email address.');
			return;
		}

		$register_status = $this->isNewsletterRegistered($email);
		if ($register_status > 0) {
			echo $this->l('This email address is already registered.');
			return;
		}

		$email = pSQL($email);
		if (!$this->isRegistered($register_status))
		{
			// create an unactive entry in the newsletter database
			if ($register_status == self::GUEST_NOT_REGISTERED)
				$this->registerGuest($email);

			$code = "myCode";

			$resp = $this->sendVoucher($email, $code);
			
			echo $this->l('A verification email has been sent. Please check your inbox.');
			return;
		}
	}

Still waiting for fixes from promokit, cheers ;)

Marek 18 Aug 2016, 11:17

Hi Rafal.
Thank you for your suggestion.


To bandcconcept.
I have added a line

if ($discount = Configuration::get('NW_VOUCHER_CODE'))
$this->sendVoucher($email, $discount);

Now it should work fine