- Posts: 9
- Thank you received: 0
Get Geolocation data from session
- designbuilder
-
Topic Author
- Offline
Less
More
10 years 1 month ago #250456
by designbuilder
Get Geolocation data from session was created by designbuilder
-- HikaShop version -- : 2.6.2
Hi,
In the Geolocation Plugin documentation it states that information is cached in a users session. How do I go about accessing this? I have tried using getIPLocation from class geolocation but this appears to make another request to IPinfodb.
Thanks
Hi,
In the Geolocation Plugin documentation it states that information is cached in a users session. How do I go about accessing this? I have tried using getIPLocation from class geolocation but this appears to make another request to IPinfodb.
Thanks
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250459
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Get Geolocation data from session
Hi,
HikaShop is working with his zones ; when the geolocation is called, it stores the corresponding HikaShop zone in the session.
Regards,
HikaShop is working with his zones ; when the geolocation is called, it stores the corresponding HikaShop zone in the session.
Code:
$app = JFactory::getApplication();
$zone = $app->getUserState(HIKASHOP_COMPONENT.'.zone_id', 0);
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: designbuilder
Please Log in or Create an account to join the conversation.
- designbuilder
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
10 years 1 month ago #250521
by designbuilder
Replied by designbuilder on topic Get Geolocation data from session
Thanks Jerome,
That is very helpful.
That is very helpful.
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds