New answers tagged

0

Please try this code function search_by_sku( $search, &$query_vars ) { global $wpdb, $pagenow; if ( 'edit.php' != $pagenow || ! is_search() || ! isset( $query_vars ->query_vars['s'] ) || 'product' != $query_vars ->query_vars['post_type'] ) { return $search; } if(isset($query_vars->query['s']) &&...


0

If you are using wordpress search you can add this code to make it work function search_by_sku( $search, &$query_vars ) { global $wpdb; if(isset($query_vars->query['s']) && !empty($query_vars->query['s'])){ $args = array( 'posts_per_page' => -1, 'post_type' => 'product', '...


0

Might not be the real cause, but you have a JS error due to badly formatted JS - the following lines: <script type="text/javascript"> jQuery(document).ready(function( $ ){ jQuery(“a[href=’#aiwoosearch#’]”).attr(‘onclick’, ‘parentNode.submit();’); jQuery(“a[href=’#aiwoosearch#’]”).attr(“href”, “javascript:;”); }); </script> Those quote ...


Top 50 recent answers are included