| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to display or even log IP address on register page? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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!
__________________
Version 4.7.6 X-cart Gold |
|||||||||
#2
|
|||||||
|
|||||||
![]() Use:
{$REMOTE_ADDR}
__________________
![]() ![]() One Page Checkout :: OnSale :: Download Expander Smart Template by X-Cart MODS |
|||||||
|
#3
|
|||||||
|
|||||||
![]() 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?
__________________
Currently Using: For X-cart v5.2.0 1 Business v5.2.6 license <Getting Better>! 1 Banner Mod 5.2.7 license 1 #28 iGoods Template For X-cart v4.7.0 1 GoldPlus v4 license unused 3 Gold v4 license Unused A wise man once said it is best to fix the cart instead of trying to use a broken cart. The horse has a very hard time pushing a broken cart!! |
|||||||
#4
|
|||||||||
|
|||||||||
![]() {$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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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.
__________________
Currently Using: For X-cart v5.2.0 1 Business v5.2.6 license <Getting Better>! 1 Banner Mod 5.2.7 license 1 #28 iGoods Template For X-cart v4.7.0 1 GoldPlus v4 license unused 3 Gold v4 license Unused A wise man once said it is best to fix the cart instead of trying to use a broken cart. The horse has a very hard time pushing a broken cart!! |
|||||||
#6
|
|||||||||
|
|||||||||
![]() No it won't. Past orders IP is already in DB and won't change
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]() 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
__________________
Currently Using: For X-cart v5.2.0 1 Business v5.2.6 license <Getting Better>! 1 Banner Mod 5.2.7 license 1 #28 iGoods Template For X-cart v4.7.0 1 GoldPlus v4 license unused 3 Gold v4 license Unused A wise man once said it is best to fix the cart instead of trying to use a broken cart. The horse has a very hard time pushing a broken cart!! |
|||||||
#8
|
|||||||
|
|||||||
![]() Quote:
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
|
|||
X-Cart forums © 2001-2020
|