Tab content fields won't show – ACF PRO

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

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

    Posts

  • #1625

    Marc

    Participant

    Hi,
    we are using ACF PRO v5.2.1 in our website. After installing your plugin your tab content fields won’t load on the product edit page.

    I think this is because you are using ACF 4 free version in your plugin. Can you please provide a solution.

    Thanks in advance.
    Kind regards

    Attachments:

    You must be logged in to view attached files.

    #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

    #1633

    Marc

    Participant

    Hi Peter,
    thanks for your help. Unfortunately it did not solve the problem. The problem was that the ACF Pro version has all the addons included. The wp_wysiwyg type field is adressed in the pro version as wysiwyg. I changed it and now it works. I also used your code to exclude the free version. I hope your plugin can support both ACF free and pro in the future so i can update your plugin.

    Thanks

    #1635

    WebshopLogic

    Keymaster

    Hi Marc!

    Thank you for your feedback.
    Can you send us the code that you modified exactly, then we can build it in the next version to support ACF Pro.

    Please send it to info@webshoplogic.com

    Thanks,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.