Home Forums Themes Support Bibo How to fix Bibo theme conflict Woocommerce Product Variable in Admin

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #575

    After upgrade to Woocommerce 3.0.3 you can get conflict when create product variable in Woocommerce. The reason is jquery Select2 version in our plugin different with version in Woocommerce. So in this case you can fix it by following steps:
    Step 1: Go to {yourwebroot}/wp-content/plugins/milo-bibo-core/admin then open file milo_core-admin.php
    Step 2: Go to line 46 then change code from:
    wp_enqueue_script( $this->prefix .'-select2', plugins_url( PLUGIN_MILO_BIBO_CORE_NAME.'/admin/assets/plugins/jquery.select2/select2.min.js'), array(), false, true );
    to

    $screen = get_current_screen();
    if ( $screen->post_type != 'product' ) {
        wp_enqueue_script( $this->prefix .'-select2', plugins_url( PLUGIN_MILO_BIBO_CORE_NAME.'/admin/assets/plugins/jquery.select2/select2.min.js'), array(), false, true );
    }

    P/s: We will update this in new version in our plugin.
    Hope this help you!

    **********
    Best regards,
    MiloTheme

    • This topic was modified 7 years ago by admin.
    • This topic was modified 7 years ago by admin.
    #599

    That did it – thx!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.