Support » Plugin: WP Tiles » BROKEN! WooCommerce 3.0

Viewing 5 replies - 1 through 5 (of 5 total)
  • Details on what this affects on my system was the product detail on the admin page. Product choice of variable or simple is not shown and no submenus in the product admin page can be chosen, so I was completely dead in the water trying to administer product.

    Yes I can confirm this issue. When adding a product attribute there is an error coming up in the console.

    Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element. (wc-enhanced-select.min.js?ver=3.0.4:1 )
    Uncaught Error: Option ‘ajax’ is not allowed for Select2 when attached to a <select> element. (select2.min.js?ver=3.3.2:21 )

    Here’s a workaround for the issue. I remove the select2 version WP Tiles uses and add the latest version 4 from the CDN.

    function wptiles_select2_dequeue_script() {
       wp_dequeue_script( 'select2' );
       wp_deregister_script( 'select2' );
       wp_register_script( 'select2', 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js', array( 'jquery' ), '4.0.3' );
       wp_enqueue_script( 'select2' );
    }
    
    add_action( 'wp_print_scripts', 'wptiles_select2_dequeue_script', 100 );

    Thanks @tabboy for the advice. I went ahead and forked the github repo, then created a pull requeset with the latest select2 library. It’s working for me with WooCommerce.

    https://github.com/mgmartel/WP-Tiles/pull/32

    @acodesmith, no worries mate.

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