Reply To: Tab content fields won't show – ACF PRO

Home Page Forums WooCommerce Custom Tabs Tab content fields won't show – ACF PRO Reply To: Tab content fields won't show – ACF PRO

#1629

WebshopLogic

Keymaster

Hi Marc!

ACF Free can be include in other plugins, we have done it according to the ACF documentation.

I do not have information about
-if ACF free and ACF PRO is compatible or not (so ACF PRO can substitute ACF Free or not),
-if they are not compatible, ACF Free and ACF Pro can be installed on the same system or not
If they are not compatible and there is collusion between Free and Pro, than we have to ask ACF support.

But first I suggest you to “turn off” including the built in ACF free version, and if ACF PRO and ACF Free is compatible, than your ACF Pro will work with our plugin properly.
I have tried it with ACF Free (I do not have ACF PRO), so I installed ACF free us a separate plugin, and “turned off” built in ACF Free. This way our plugin worked properly with separate ACF.

To “turn off” built in ACF, please delete these few lines from your woocommerce-custom-tabs.php file (before it you can copy this file as a backup):

if ( ! class_exists( 'Acf' ) ) {  //if ACF plugin is installed, it is not needed
	
	define( 'ACF_LITE', true ); //remove all visual interfaces of ACF plugin
	include_once( 'advanced-custom-fields/acf.php' );

}

There is another ACF plugin included in our plugin: acf_field_wp_wysiwyg_plugin
I do not have information about if it is part of PRO version or not.
If after removing the above part of program does not solve the problem, you can try to delete these lines too:

if ( ! class_exists( 'acf_field_wp_wysiwyg_plugin' ) ) {  //if acf_field_wp_wysiwyg_plugin plugin is installed, it is not needed

	include_once('acf-wordpress-wysiwyg-field/acf-wp_wysiwyg.php' );

}

If it is does not solve the problem, then please let us know it, and we will ask ACF support team about this.
If it solve the problem, we can make a new checkbox that enable/disable ACF Free include.

We look forward to your feedback.

Best Regards,
Peter Rath