Advanced Woo Search - Version 1.02

Version Description

  • Add single page search for 'product' custom post type
  • Fix problem with dublicate products in the search results
Download this release

Release Info

Developer Mihail Barinov
Plugin Icon 128x128 Advanced Woo Search
Version 1.02
Comparing to
See all releases

Code changes from version 1.01 to 1.02

Files changed (2) hide show
  1. advanced-woo-search.php +3 -2
  2. readme.txt +5 -1
advanced-woo-search.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
- Version: 1.01
7
  Author: ILLID
8
  Text Domain: aws
9
  */
@@ -110,6 +110,7 @@ final class AWS_Main {
110
  $markup .= '<div class="aws-container" ' . $params_string . '>';
111
  $markup .= '<form class="aws-search-form" action="' . site_url() . '" method="get" role="search" >';
112
  $markup .= '<input type="text" name="s" value="' . get_search_query() . '" class="aws-search-field" placeholder="' . $placeholder . '" autocomplete="off" />';
 
113
  $markup .= '<div class="aws-search-result" style="display: none;"></div>';
114
  $markup .= '</form>';
115
  $markup .= '</div>';
@@ -258,7 +259,7 @@ final class AWS_Main {
258
 
259
 
260
  $sql = "SELECT
261
- ID,
262
  {$query['relevance']} as relevance
263
  FROM
264
  $wpdb->posts AS posts,
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
+ Version: 1.02
7
  Author: ILLID
8
  Text Domain: aws
9
  */
110
  $markup .= '<div class="aws-container" ' . $params_string . '>';
111
  $markup .= '<form class="aws-search-form" action="' . site_url() . '" method="get" role="search" >';
112
  $markup .= '<input type="text" name="s" value="' . get_search_query() . '" class="aws-search-field" placeholder="' . $placeholder . '" autocomplete="off" />';
113
+ $markup .= '<input type="hidden" name="post_type" value="product">';
114
  $markup .= '<div class="aws-search-result" style="display: none;"></div>';
115
  $markup .= '</form>';
116
  $markup .= '</div>';
259
 
260
 
261
  $sql = "SELECT
262
+ distinct ID,
263
  {$query['relevance']} as relevance
264
  FROM
265
  $wpdb->posts AS posts,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
- Stable tag: 1.01
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -53,6 +53,10 @@ Or insert this function inside php file ( often it used to insert form inside pa
53
 
54
  == Changelog ==
55
 
 
 
 
 
56
  = 1.01 =
57
  * Fix problem with result block layout
58
 
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 4.4.2
7
+ Stable tag: 1.02
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
53
 
54
  == Changelog ==
55
 
56
+ = 1.02 =
57
+ * Add single page search for 'product' custom post type
58
+ * Fix problem with dublicate products in the search results
59
+
60
  = 1.01 =
61
  * Fix problem with result block layout
62