VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: carsten888 on April 10, 2015, 10:49:59 AM

Title: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: carsten888 on April 10, 2015, 10:49:59 AM
When an order is placed, the ip address of the client is stored as 83.45.77.xx. I need the real ip adress, without the xx.

By law we need to be able to prove to the tax office from which country the client purchased the product. So the full ip address needs to be stored in the db. Without the xx, so we can calculate which country the user is from. With the xx, this does not work in software like geoip. https://www.maxmind.com/en/geoip-demo.

Why are some ip addresses in table #__virtuemart_orders this value: '2xx'?

How to fix that? I can't find any setting for that.
Title: Re: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: Milbo on April 10, 2015, 12:24:34 PM
It is not something to fix !
It is mandatory in most countries. http://en.wikipedia.org/wiki/Information_privacy you can disable it, using an hidden option for it, which you must set by config file
Title: Re: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: Milbo on April 11, 2015, 18:26:31 PM
The variable is maskIP, just write maskIP=0 to the virtuemart.cfg and store your vm config one time (in vm3, else check the FAQ)
Title: Re: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: carsten888 on April 22, 2015, 14:00:26 PM
thank you  :)
Title: Re: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: m.davide82 on July 17, 2018, 18:02:57 PM
Hi Milbo,

maskIP=0 is not working, any idea of why?


Thanks.
Title: Re: ip address not fully saved when order is placed. 83.45.77.xx?
Post by: Jumbo! on July 18, 2018, 17:15:40 PM
You must re-save the Configuration from admin interface after adding the variable in virtuemart.cfg.