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

#   #\_\_hikashop\_geolocation aucune info

##

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

14 years 7 months ago -  14 years 7 months ago [\#47825](#47825) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[\#\_\_hikashop\_geolocation aucune info](/forum/5-support-en-francais-french-support-/47825-hikashop-geolocation-aucune-info#47825 "Bonjour  #&#95;&#95;hikashop&#95;geolocation ne retourne aucune info, la table reste vide sur les geolocation&#95;country ect.. que faut il pour que ça marche ?  j'ai pourtant une cle de   ipinfodb.com/register.php  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

\#__hikashop_geolocation ne retourne aucune info, la table reste vide sur les geolocation_country ect..
que faut il pour que ça marche ?

j'ai pourtant une cle de [ ipinfodb.com/register.php](http://ipinfodb.com/register.php)

merci

Last edit: 14 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 7 months ago [\#47944](#47944) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: #\_\_hikashop\_geolocation aucune info](/forum/5-support-en-francais-french-support-/47825-hikashop-geolocation-aucune-info#47944 "Bonjour  #&#95;&#95;hikashop&#95;geolocation ne retourne aucune info, la table reste vide sur les geolocation&#95;country ect.. que faut il pour que ça marche ?  j'ai pourtant une cle de   ipinfodb.com/register.php  merci")*

Vous avez configuré et publié le plugin de géolocation ?
Vous avez essayé en changeant de session utilisateur ?

La table est complètement vide ? Ou seulement certaines colonnes ?

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

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

14 years 7 months ago [\#47965](#47965) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: #\_\_hikashop\_geolocation aucune info](/forum/5-support-en-francais-french-support-/47825-hikashop-geolocation-aucune-info#47965 "Bonjour  #&#95;&#95;hikashop&#95;geolocation ne retourne aucune info, la table reste vide sur les geolocation&#95;country ect.. que faut il pour que ça marche ?  j'ai pourtant une cle de   ipinfodb.com/register.php  merci")*

oui bien sur, j'ai mis la cle et c'est publie, il y a de toute facon peu d'options

je recuperes les lieux de commande avec une fonction à moi comme vu ici [ www.hikashop.com/fr/forum/5-support-en-f...stingphp-icones.html](http://www.hikashop.com/fr/forum/5-support-en-francais-french-support-/47661-adminiproductlistingphp-icones.html) donc trouver le lieu n'est pas le probleme mais je prefererais utiliser le natif d'Hikashop

[ ![Capturedecran2012-04-24a08.04.03.jpg](/forum/attachment/3640) ](/forum/attachment/3640 "...4a08.04.03.jpg")

la table est remplie avec l'ip , order ect ... mais la localisation est vide
est ce que ce plugin depend d'un nom de domaine ?

- [ ![Capturedecran2012-04-24a08.04.03.jpg](/forum/attachment/3640) ](/forum/attachment/3640 "...4a08.04.03.jpg") [ ](/forum/attachment/3640?download=1 "...4a08.04.03.jpg")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

14 years 7 months ago [\#47976](#47976) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: #\_\_hikashop\_geolocation aucune info](/forum/5-support-en-francais-french-support-/47825-hikashop-geolocation-aucune-info#47976 "Bonjour  #&#95;&#95;hikashop&#95;geolocation ne retourne aucune info, la table reste vide sur les geolocation&#95;country ect.. que faut il pour que ça marche ?  j'ai pourtant une cle de   ipinfodb.com/register.php  merci")*

En fait, l'api de Geolocation a changé il y a un an et ne fournit plus les informations de localisation comme c'était le cas auparavant. Donc les colonnes qui contenaient autrefois des informations intéressantes ne sont maintenant plus utilisées et seul le minimum syndical est disponible malheureusement.

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

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

Less More

- Posts: 2705
- Thank you received: 74
-
-

14 years 7 months ago -  14 years 7 months ago [\#47979](#47979) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: #\_\_hikashop\_geolocation aucune info](/forum/5-support-en-francais-french-support-/47825-hikashop-geolocation-aucune-info#47979 "Bonjour  #&#95;&#95;hikashop&#95;geolocation ne retourne aucune info, la table reste vide sur les geolocation&#95;country ect.. que faut il pour que ça marche ?  j'ai pourtant une cle de   ipinfodb.com/register.php  merci")*

en ce cas j'utilise ça
Code:

function geoLocationByIp($ip) { $domain = 'http://www.netip.de/search?query='; if(!filter_var($ip, FILTER_VALIDATE_IP)) { throw new InvalidArgumentException("IP ?"); } $response=@file_get_contents($domain.$ip); if (empty($response)) { throw new InvalidArgumentException("Erreur contact Geo-IP-Server"); } $patterns=array(); $patterns["domain"] = '#Domain: (.*?)&amp;nbsp;#i'; $patterns["country"] = '#Country: (.*?)&amp;nbsp;#i'; $patterns["state"] = '#State/Region: (.*?)&lt;br#i'; $patterns["town"] = '#City: (.*?)&lt;br#i'; $ipInfo=array(); //check response from ipserver for above patterns foreach ($patterns as $key =&gt; $pattern) { //store the result in array $ipInfo[$key] = preg_match($pattern,$response,$value) &amp;&amp; !empty($value[1]) ? $value[1] : 'not found'; } // host, state, country, town $c = utf8_encode($ipInfo['country']); $t = utf8_encode($ipInfo['town']); $s = utf8_encode($ipInfo['state']); $c = str_replace('not found','?', $c); $t = str_replace('not found','?', $t); $s = str_replace('not found','?', $s); $loc = $c . ' : ' . $s . ' : ' . $t; return $loc ; }

Last edit: 14 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDc4MjUtaGlrYXNob3AtZ2VvbG9jYXRpb24tYXVjdW5lLWluZm8/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.073 seconds

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