christianwach / civicrm-wp-profile-sync

Keeps a WordPress User profile in sync with a CiviCRM Contact and integrates WordPress and CiviCRM Entities with data synced via Advanced Custom Fields.
https://wordpress.org/plugins/civicrm-wp-profile-sync/
GNU General Public License v2.0
13 stars 17 forks source link

Country/State #18

Closed yurg closed 3 years ago

yurg commented 3 years ago

According to https://github.com/christianwach/civicrm-wp-profile-sync/blob/master/docs/ACF.md#country--stateprovince it is "Select' field, but whatever I do, there are only "IndividualPrefix/Suffix" country-state I have the right-hand box empty on "Settings - Localization" page., ie. all countries are enabled in CiviCRM.

christianwach commented 3 years ago

Works for me.

Here's the standard "Select" Field:

Screenshot 2021-04-20 at 08 59 26

Here's the "Select" Field with "Select multiple values?" selected:

Screenshot 2021-04-20 at 08 59 07

Are you sure the Custom Field Group is assigned to the Contact Sub-type?

yurg commented 3 years ago

@christianwach Are you sure the Custom Field Group is assigned to the Contact Sub-type? Is it CiviCRM Custom Field Group to be assigned to CiviCRM Contact Sub-type and Coutry/State to be a custom field like "The Full Monty" on the grabs? I can see there is "CiviCRM City", "CiviCRM State" and "CiviCRM Address" ( which holds all this plus Country ) so just thinking if maybe a Country deserves its separate field too.

christianwach commented 3 years ago

@yurg "The Full Monty" is my CiviCRM Custom Field Group that contains every kind of CiviCRM Custom Field. It is assigned to the CiviCRM Contact Sub-type that is synced to my WordPress Custom Post Type. So yes, in that CiviCRM Custom Field Group there is a "State/Province" and a "Country" CiviCRM Custom Field.

maybe a Country deserves its separate field too.

It does, for sure. I ran out of time and resources. Though perhaps "CiviCRM City", "CiviCRM State" aren't are quite what you think they are - they are read-only ACF Fields that only sync one-way From CiviCRM to ACF.

christianwach commented 3 years ago

maybe a Country deserves its separate field too.

"CiviCRM Country (Read Only)" ACF Field implemented in 3cd0a99ff0b435ea1b4dce1c9c5b701eb328bd93