| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Logging IP numbers | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#71
|
|||||||
|
|||||||
![]() Hi all,
Just a quick note, I may be wrong, and have not had time to look at the code, but looking at the database, it appears that when an order is placed in 4.0.x it now displays the IP Address for the customer. However, this IP may be wrong. I looked quickly and I cannot find anywhere except for the login table where the IP is stored. So if a customer is either using different machines, or having their IP assigned each time they logon to the net, then this could be wrong. A Customer may place many orders with your store, and each order may be placed from different locations (work, home, even remote now with wireless internet). So picking up the IP from the login table could be wrong. I agree, it should be recorded in the login table, but why does X-CART not store it in the orders table as well ???. This way you would have the correct IP for each order ! Come on X-CART, think about it ! PS: I have now developed a mod, which detects the country of the shopper/visitor and displays the alternate currency for their country (if availbale). With a small mod, it could also be used to stop traffic from certain countries. (ie. If you do not ship outside the USA, then stop the customer at the front door and don't let them in. This would save on server resourses and bandwidth).
__________________
All versions of X-Cart Been in eCommerce 10 years, Coding, PM, SEO, Social. X-Cart 11 years. IT 30+ years. Head of Web Dev for Australia's largest eCommerce 2 years. Attended conferences, Velocity 2009 US, CeBit 2009, MySQL 2010 US, Online Retailer 2010, Web 2.0 2011 US, MySQL 2012 US (Percona). Specialise in High Performance, High Volume, PHP, MySQL, HTML, CSS, JAVASCRIPT, SMARTY, MEMCACHED, APACHE, LIGHTTPD, FREEBSD, LINUX. Email your requests to xcart@gazwebtech.com |
|||||||
#72
|
|||||||
|
|||||||
![]() The mod doesn't appear to work in 3.5.10...It gives this error:
Parse error: parse error, unexpected T_STRING in ....../include/fetch_remote_address.php on line 12 Any ideas? -Bradley |
|||||||
#73
|
|||||||
|
|||||||
![]() I got the IP to be displayed in 3.5.10 using Boomers original mod...to get it working, follow Boomer's mod and then just modify the top_inc.php file to include the additional variables...the code should look like:
Code:
-Bradley |
|||||||
#74
|
|||||||||
|
|||||||||
![]() Anyone got this working on 4.0?
|
|||||||||
#75
|
|||||||||
|
|||||||||
![]() garryhs:
The IP is stored in xcart_order_extras for each order placed and not just in the login. You will notice there are 2 fields created for eash order placed in this table and it also list the time it was placed in here as well.
__________________
www.kzeinc.com www.ptgoils.com.com 5.4.09 www.earths-oils.com 5.4.09 www.1exoticwear.com.com 5.4.09 |
|||||||||
#76
|
|||||||||
|
|||||||||
![]() Quote:
|
|||||||||
#77
|
|||||||||
|
|||||||||
![]() Ah shucks, it was nothing and thanks by the way for that htaccess file earlier.
__________________
www.kzeinc.com www.ptgoils.com.com 5.4.09 www.earths-oils.com 5.4.09 www.1exoticwear.com.com 5.4.09 |
|||||||||
#78
|
|||||||||
|
|||||||||
![]() Quote:
4.0.x logs IP addresses with the orders already. They listened. ![]() Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#79
|
|||||||
|
|||||||
![]() Quote:
Try this, it's not perfect but maybe help. ![]()
__________________
X-CART GOLD: 4.0.14 Operating system Linux Apache version 1.3.33 (Unix) PERL version 5.8.1 PHP version 4.3.10 MySQL version 4.0.22-standard |
|||||||
#80
|
|||||||
|
|||||||
![]() Your IP address <a href="http://www.samspade.org/t/lookat?a={$smarty.server.REMOTE_ADDR}" target="_blank"> {$smarty.server.REMOTE_ADDR} is logged for security reasons.</a>
__________________
X-CART GOLD: 4.0.14 Operating system Linux Apache version 1.3.33 (Unix) PERL version 5.8.1 PHP version 4.3.10 MySQL version 4.0.22-standard |
|||||||
|
|||
X-Cart forums © 2001-2020
|