Close

Newsletter

IvanSlater
8 years ago
#9162 Quote
Avatar
  • 89
Hi there!

Im making a new reminder rule to send new products to my customers and newsletter users.

So, how to deal with newsletter? Because CustomerReminderInfo requires Customer. Can I create a new Customer() with the newsletter e-mail just to send it the reminder? Or it is not possible?

Thanks!
iliyan.tanev
8 years ago
#9170 Quote
Avatar
  • Moderator
  • 347
Hi,

It is not a good idea to create new customer entities for customers that you already have in your database. Also you will need your new customer instance to contain the customer name and id.

The better choice would be to write a service that joins customer repository with subscription repository by email and to get the subscribed customers from there.
Regards,
Iliyan Tanev
Nop-Templates Dev Team