[FIXED in v3.0.8] Phone number field wrong order of phone part and do not display Country Code

More
8 years 7 months ago - 8 years 7 months ago #56865 by bobthebob01
Hi,
I'm using a phone number field for one of my project.
When i set to use "area code + part 2 + part 3" in the configuration of the "Values Creation", they display in the wrong order in the form when creating/editing an item.
The "Area Code" shows after part2 and part3; when it should logically be first.

Also, on the front end, the country code does not appear.

You can see the attached screenshot as an example.




Attachments:
Last edit: 8 years 7 months ago by ggppdk.

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

More
8 years 7 months ago #56872 by ggppdk
Hello

yes it needs fixing,
-- they cases are broken in item form
area code + local number
area code + part 2 + part 3

i will give you the fixed
phonenumbers.php

and you can verify the fix


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

More
8 years 7 months ago - 8 years 7 months ago #56876 by ggppdk
Hello

it should be fixed here:
github.com/FLEXIcontent/flexicontent-cck...e64250fabee4ab342575

In this page, click "RAW" then do inside your browser menu do a "SAVE AS" to save the file locally
(phonenumbers.php)
github.com/FLEXIcontent/flexicontent-cck...ers/phonenumbers.php

test by replacing
plugins/flexicontent_fields/phonenumbers/phonenumbers.php


-- 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...
Last edit: 8 years 7 months ago by ggppdk.

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

More
8 years 7 months ago - 8 years 7 months ago #56877 by bobthebob01
Hi ggppdk,

that fix works perfectly. You can push it for the next release.

But I'm still unsure why the country code is not showing on the front end?
Last edit: 8 years 7 months ago by ggppdk.

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

More
8 years 7 months ago #56890 by ggppdk
Hello

about displaying the country code,
- i see the parameter name is wrong ...

edit the field file and change:
Code:
$display_country_code = $field->parameters->get( 'display_phone_label', 1 ) ;
to be:
Code:
$display_country_code = $field->parameters->get( 'display_country_code', 1 ) ;


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

More
8 years 7 months ago #56898 by bobthebob01
Yep, that was it!

thanks a lot ggppdk.
every thing works fine now.

cheers

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 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