Topic-icon Name not set?

Active Subscriptions:

None
9 years 11 months ago - 9 years 11 months ago #47789 by oligib
Name not set? was created by oligib
Hi, I downloaded your free module.. thank you very much for this! One thing I found is that when the person is auto added to the Sendy list, the email is there, but the name shows 'not set' ? Any ideas? has something changed?
Last edit: 9 years 11 months ago by oligib.
The topic has been locked.
Active Subscriptions:

None
9 years 11 months ago - 9 years 11 months ago #47791 by oligib
Replied by oligib on topic Name not set?
Also, one other thing.. I cannot find the details on the API where I can add a user with one line of API code? Could you point me in the right direction? That would be really helpful as it's all a bit confusing ! I wanted to try and use this to subscribe users from Opencart/Mijoshop guest checkout ... as currently only people that register an account are signed up the list sendy list.
Last edit: 9 years 11 months ago by oligib.
The topic has been locked.
Support Specialist
9 years 11 months ago #47870 by alzander
Replied by alzander on topic Name not set?
Oliver,
Sorry for the delayed response!

API commands
Yeah, we need to put a document together about this. Fortunately, it's really easy. To add a user, simply use the following code:
Sendy::getInstance()->subscribeUser($email, $list);
Where $email = "This email address is being protected from spambots. You need JavaScript enabled to view it." and $list = 2 (the list ID set in the Sendy System plugin, *NOT* the long string ID from Sendy itself.

Name field
As for the name, it seems like we're not setting that during registration right now. When we developed the plugin for our purposes, it just wasn't a field we needed since we don't merge names into our newsletters (mainly because Joomla is very lax about name policies and there's no way to separate first/last name).

That's something we may add in the future, and it's likely not difficult to do, but I don't have a timeline on when we'd do so right now.

I hope that helps get you going for now though,
Alex
The topic has been locked.