• The previous topic was closed. So restarting this.

    Previous topic: https://www.ads-software.com/support/topic/european-union-in-drop-down-needs-updating/

    I reopened because since then there has been an update. I had to manually update the code again after getting tons of orders mixed up before we noticed.

    Please fix this in your code. As the plugin maintainer, it really should be fixed and it is a simple fix to implement.

    This code (line 344 in file “class-alg-wc-pvbc-core.php”)

    	function maybe_add_eu_countries( $countries ) {
    		return ( ! empty( $countries ) && is_array( $countries ) && in_array( 'EU', $countries ) ?
    			array_merge( $countries, array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB, 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV',
    				'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' ) ) :
    			$countries
    		);
    	}

    Should say:

    	function maybe_add_eu_countries( $countries ) {
    		return ( ! empty( $countries ) && is_array( $countries ) && in_array( 'EU', $countries ) ?
    			array_merge( $countries, array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV',
    				'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' ) ) :
    			$countries
    		);
    	}
    • This topic was modified 1 year, 1 month ago by dassels43.
    • This topic was modified 1 year, 1 month ago by dassels43.
  • The topic ‘European Union STILL needs updating’ is closed to new replies.