wordpress - jQuery Chosen for woocommerce -


i using woocommerce plugin wordpress. need use jquery chosen product variations drop down.

woocommerce have chosen plugin in folder

\plugins\woocommerce\assets\js\chosen 

how can enable it.?

thanks!

add_action('admin_print_styles', array($this, 'admin_scripts'));  public function admin_scripts() {         global $wp_scripts;         wp_enqueue_script('wc-enhanced-select'); // if using recent versions         //wp_enqueue_script('chosen'); // if using old versions         wp_enqueue_style('woocommerce_admin_styles', wc()->plugin_url() . '/assets/css/admin.css');      } 

and in select box can apply class="wc-enhanced-select" or class="chosen_select" accordingly


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -