Viewing 1 replies (of 1 total)
  • Plugin Author Beka Rice

    (@bekarice)

    Hey there, sounds like this may be an error related to the WooCommerce version – are you using version 2.0? The plugin needs v2.1+.

    You could use it with an earlier version, but you’d have to remove the part where we disable the SKU field by commenting it out (wrapping it with /* before it starts and */ after it ends):

    function wc_sku_generator_disable_sku_field() {
    	if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
    		wc_enqueue_js("$('.woocommerce_options_panel input#_sku').attr('disabled', true);");
    	}
    }
    add_action( 'woocommerce_init', 'wc_sku_generator_disable_sku_field');

    This would allow you to edit a SKU field, but with the plugin enabled, it will always be overridden by the slug when saving the product.

Viewing 1 replies (of 1 total)
  • The topic ‘Installation Failure’ is closed to new replies.