How to store country name instead of country code on Address field

More
6 years 9 months ago #72089 by jimie
Hi @ggppdk you said on a previous topic that's how the store work.

the actual value of the every property is stored
and the actual value of the country propery is the countty code


Is there any way to store the country name instead?

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

More
6 years 9 months ago #72090 by micker
you can use override option in last tab of address field
create a country field like a text and connect it in address field

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
6 years 9 months ago - 6 years 9 months ago #72091 by jimie
That is what I have already, but still for example:




Instead of "France" in the field is saved instead "FR"

Attachments:
Last edit: 6 years 9 months ago by jimie.

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

More
6 years 9 months ago #72097 by ggppdk
Hello

you should be able to use 'custom code' for field value creation inside the (text field) configuration

to do
Code:
foreach ... $v[$i] = JText::_( 'PLG_ADDRINT' . $v[$i] . '_COUNTRY')

i will review it and suggest actual code in my next message


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.374 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline