Geolocation plugin

  • Posts: 1119
  • Thank you received: 114
6 years 1 month ago #297522

Hi,

I do have few question regarding geolocation plugin.

1. Is there a way to show/hide some articles/pages based on country user is from with this plugin help?

2. Is there a way to retrieve data from geolocation plugin and as example show different text based on user country in product page (show_default.php view)?

Something like this:

if ($country='Germany') { echo 'You are from Germany....';}


Would like to have different content based on user country. Before looking into other plugins maybe with hikashop geolocation plugin we could get what we need....

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 1 month ago #297524

Hi,

1. No. I believe you could do that with something like Chameleon:
extensions.joomla.org/extension/chameleon/

2. Yes.
You can use the function hikashop_getZone() in order to know the location of the current user.
Note that it will return you the id of the zone from the System>Zones menu, not the name.

The following user(s) said Thank You: kyratn

Please Log in or Create an account to join the conversation.

Time to create page: 0.045 seconds
Powered by Kunena Forum