VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: bettinz on October 02, 2015, 10:58:53 AM

Title: Plugin Development after user registration
Post by: bettinz on October 02, 2015, 10:58:53 AM
Hello, I'm studying virtuemart and joomla system, and I'm pretty new to it.
I'm trying to add an "event" after user registration, like transfer user data to another system (a php page created by me).
What I know is that I need to write a plugin, but I can't find so much about user registration. Can someone help me? :)
Title: Re: Plugin Development after user registration
Post by: GJC Web Design on October 02, 2015, 18:23:34 PM
https://docs.joomla.org/Plugin/Events/User#onUserAfterSave

if your registering the user

if not there is a   plgVmAfterUserStore in the VM user model
Title: Re: Plugin Development after user registration
Post by: bettinz on October 02, 2015, 19:17:34 PM
Thank you, but the event is related to Joomla User.
What I'm looking for is an event with virtuemart registration (and fields like address, postal code, etc).
I've searched 'plgVm' and classes in php files, I've also searched in documentation without help :(
Title: Re: Plugin Development after user registration
Post by: GJC Web Design on October 02, 2015, 21:31:38 PM
as I asked -- r u registering the users?.. then u can use the Joomla trigger

if not doesn't this fire?  plgVmAfterUserStore in the VM user model -- look in the user VM model