[Skip to main content](#vessel-content)

#   IP ADDRESS AND GEOLOCATION PLUGIN

##

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

13 years 2 weeks ago -  13 years 2 weeks ago [\#131387](#131387) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  *[IP ADDRESS AND GEOLOCATION PLUGIN](/forum/35-orders-management/863445-ip-address-and-geolocation-plugin#131387 "Hi!  Please refer to the attached screenshot, where IP field is empty. Don't you know why it does not identify IP address? Is it possible to track IP addresses of unregistered customers in their carts?  Also, my Geolocation plugin does not show location. (May be the same reason?).  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3")* was created by *[watashi](/forum/user/8585-watashi "View watashi's Profile")*

Hi!

Please refer to the attached screenshot, where IP field is empty. Don't you know why it does not identify IP address? Is it possible to track IP addresses of unregistered customers in their carts?

Also, my Geolocation plugin does not show location. (May be the same reason?).

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.1
-- PHP version -- : 5.3

[ ![h537e492.jpg](/forum/attachment/13508) ](/forum/attachment/13508 "h537e492.jpg")

- [ ![h537e492.jpg](/forum/attachment/13508) ](/forum/attachment/13508 "h537e492.jpg") [ ](/forum/attachment/13508?download=1 "h537e492.jpg")

Last edit: 13 years 2 weeks ago by [watashi](/forum/user/8585-watashi "View watashi's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2MzQ0NS1pcC1hZGRyZXNzLWFuZC1nZW9sb2NhdGlvbi1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 weeks ago [\#131431](#131431) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[IP ADDRESS AND GEOLOCATION PLUGIN](/forum/35-orders-management/863445-ip-address-and-geolocation-plugin#131431 "Hi!  Please refer to the attached screenshot, where IP field is empty. Don't you know why it does not identify IP address? Is it possible to track IP addresses of unregistered customers in their carts?  Also, my Geolocation plugin does not show location. (May be the same reason?).  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3")*

Hi,

The IP address is only the IP get when the user create his account on your website.
So for guest cart, there is no IP stored.

You can add this feature by making a plugin based on the function "onBeforeCartUpdate(&amp;$cartClass,&amp;$cart,$product_id,$quantity,$add,$type,$resetCartWhenUpdate,$force,&amp;$do)".
Add a column in the table "#__hikashop_cart" like "cart_ip" and then in the plugin, get the IP of the customer, and add it into the variable "$cart-&gt;cart_ip".

Finally, you will have to edit the view "cart / form" in the backend template to display the cart value instead of the user one for the IP.

Here is some documentation for the plugin:
[ www.hikashop.com/support/documentation/6...umentation.html#cart](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#cart)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2MzQ0NS1pcC1hZGRyZXNzLWFuZC1nZW9sb2NhdGlvbi1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
