• Resolved SYNC4489

    (@sync4489)


    Hi!

    first of all, many thanks for this wonderful plugin! ??

    I would like to know if it is possible to use the native address block from woocommerce for user registration, so we could already have the filtered country list where we sell, and the province/state dropdown for the supported countries in woocommerce.

    I’ve found the way to filter the countries by commenting the list in library/helpers/helper-fields.php, but it’s just a quick hack, not a good solution for plenty of reasons (overwritten by plugin upgrades, manual “syncing” of our shipping countries from woocommerce, no support for woocommerce Provinces/States)…

    If you have an idea on how to load the whole address block from woocommerce, even if just a snippet, or where we could start to look, it would be great ??

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @sync4489,

    I am afraid, there isn’t an easy workaround for a workflow that could be suggested regarding this, it would require a lot of custom coding. The following filter should help with creating a select field that could be filterable from the content that you provide.

    forminator_field_single_markup

    I hope that helps to start with.

    Kind Regards,
    Nebu John

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi again,

    I have an update regarding this, as mentioned, the above-provided one is for the select field. There’s a filter Forminator has for countries as follows

    forminator_countries_list

    Please find an example code on how to use the filter below

    add_filter(
    	'forminator_countries_list',
    	function( $countries ) {
    		$countries[ 'ATL' ] = 'Atlantis';
    		return $countries;
    	}
    );

    Kind Regards,
    Nebu John

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @sync4489

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce address field block’ is closed to new replies.