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:
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
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