X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to display or even log IP address on register page? (https://forum.x-cart.com/showthread.php?t=45513)

acidon 02-11-2009 09:51 PM

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!

uglysign 02-12-2009 04:29 PM

Re: How to display or even log IP address on register page?
 
Use:

{$REMOTE_ADDR}

SGS 12-01-2009 01:25 PM

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?

cflsystems 12-01-2009 02:17 PM

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

SGS 12-01-2009 06:50 PM

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.

cflsystems 12-01-2009 07:02 PM

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

SGS 12-02-2009 01:04 AM

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

anandat 12-02-2009 03:28 AM

Re: How to display or even log IP address on register page?
 
Quote:

Originally Posted by SGS
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

Hi can you please tell me in detail exactly where to put $order.extra.ip} so in the order it will automatically added ?


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.