VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: batboiko on September 27, 2012, 17:05:07 PM

Title: Show IP Address
Post by: batboiko on September 27, 2012, 17:05:07 PM
Hi All ,

Is there any way to show user IP address in the Virtuemart email form when someone is register to our Shop ?
We want when we receive the email to have the user IP address
Title: Re: Show IP Address
Post by: bytelord on September 27, 2012, 23:31:22 PM
Hello,

You need to create a user plugin that is triggered by the joomla onUserLogin event (http://docs.joomla.org/Plugin/Events/User#onLoginUser)
Plugin can record the value of the server variable $_SERVER['REMOTE_ADDR'] to a custom field and saved with the order.
Needs a little bit work but could be done.

You could search also on JED to find any plugin that logs user ip address and a way to trigger it...

Regards