![]() |
How to display or even log IP address on register page?
Hi I would like to be able to either log registrant IP or to display it on Register page? :?
Do I need to modify register.php or there a way to include it in register.tpl? Thanks in advance! |
Re: How to display or even log IP address on register page?
Use:
{$REMOTE_ADDR} |
Re: How to display or even log IP address on register page?
What code can I use to get the IP address to show up on a customers invoice. I want to track each IP address used for each purchase and have it show on the invoice.
I have tried {$order.$REMOTE_ADDR} but it does not show the IP address on the invoice? When I use the {$REMOTE_ADDR} alone, it works but only shows my IP address. Anyone doing this now? |
Re: How to display or even log IP address on register page?
{$REMOTE_ADDR} will show the ip address at the moment {$REMOTE_ADDR} is called. If IP is not saved in orders table with all order details when order is placed then you can't show it. It must be saved at the time order is placed in orders table
|
Re: How to display or even log IP address on register page?
Ok, so if every time an order is made and the IP address is save, also saved and shown on the Admin order page, then that code when placed on the Invoice template will also show the IP address used at the time the order was placed?
Will the IP address change on all past orders, in the Order History if customer has a different IP address? Thank you for the very fast reply too. |
Re: How to display or even log IP address on register page?
No it won't. Past orders IP is already in DB and won't change
|
Re: How to display or even log IP address on register page?
Ok, well I got it to work. I used the {$order.extra.ip} and that seems to work fine. Each order has and IP now, all called from the order info table I would think.
Thanks for all your help. Cheers |
Re: How to display or even log IP address on register page?
Quote:
|
All times are GMT -8. The time now is 01:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.