UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Trying to fetch country and region id from address

Alexandre Cayer · ·
1:07 PM Friday, 20 November 2015
Normal
Hi Guys,

I'm trying to overlap my country and region database for my component with yours so I can test if service is in the same country as registered user.

I tried a:
$my     = Foundry::user();
print_r($my->getFieldValue("address"));


and the country and region from table #__social_regions seems only to integrate the actual name in the address...

Since my site is multi-language, compare the string doesn't seems to work since the language seems only in english. (the country custom field however does provide the id of the country but there isn't a region custom field plus it would kind of not make sense to ask question twice).

Since I really want to be able to display services of the country and region from which the user is from, I need a hand to be able to fetch the proper country id and region id.

Thanks !

Alex
The replies under this section are restricted to logged in users or users with an active subscription with us