Version Description
- Add option to disable ajax search results
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.39 |
Comparing to | |
See all releases |
Code changes from version 1.38 to 1.39
- advanced-woo-search.php +7 -7
- assets/js/common.js +4 -0
- includes/options.php +5 -4
- languages/aws.pot +11 -2
- readme.txt +5 -2
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.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: aws
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'AWS_VERSION', '1.
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
@@ -139,11 +139,11 @@ final class AWS_Main {
|
|
139 |
*/
|
140 |
public function load_scripts() {
|
141 |
wp_enqueue_style( 'aws-style', AWS_URL . '/assets/css/common.css', array(), AWS_VERSION );
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
}
|
148 |
|
149 |
/*
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 1.39
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: aws
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'AWS_VERSION', '1.39' );
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
139 |
*/
|
140 |
public function load_scripts() {
|
141 |
wp_enqueue_style( 'aws-style', AWS_URL . '/assets/css/common.css', array(), AWS_VERSION );
|
142 |
+
wp_enqueue_script('aws-script', AWS_URL . '/assets/js/common.js', array('jquery'), AWS_VERSION, true);
|
143 |
+
wp_localize_script('aws-script', 'aws_vars', array(
|
144 |
+
'sale' => __('Sale!', 'aws'),
|
145 |
+
'noresults' => $this->get_settings('not_found_text') ? $this->get_settings('not_found_text') : __('Nothing found', 'aws')
|
146 |
+
));
|
147 |
}
|
148 |
|
149 |
/*
|
assets/js/common.js
CHANGED
@@ -34,6 +34,10 @@
|
|
34 |
requests[i].abort();
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
37 |
if ( searchFor === '' ) {
|
38 |
$(d.resultBlock).html('').hide();
|
39 |
methods.hideLoader();
|
34 |
requests[i].abort();
|
35 |
}
|
36 |
|
37 |
+
if ( d.showPage == 'ajax_off' ) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
if ( searchFor === '' ) {
|
42 |
$(d.resultBlock).html('').hide();
|
43 |
methods.hideLoader();
|
includes/options.php
CHANGED
@@ -96,14 +96,15 @@ $options['form'][] = array(
|
|
96 |
);
|
97 |
|
98 |
$options['form'][] = array(
|
99 |
-
"name" => __( "Search Results
|
100 |
-
"desc" => __( "
|
101 |
"id" => "show_page",
|
102 |
"value" => 'false',
|
103 |
"type" => "radio",
|
104 |
'choices' => array(
|
105 |
-
'true'
|
106 |
-
'false'
|
|
|
107 |
)
|
108 |
);
|
109 |
|
96 |
);
|
97 |
|
98 |
$options['form'][] = array(
|
99 |
+
"name" => __( "Search Results", "aws" ),
|
100 |
+
"desc" => __( "Choose how to view search results.", "aws" ),
|
101 |
"id" => "show_page",
|
102 |
"value" => 'false',
|
103 |
"type" => "radio",
|
104 |
'choices' => array(
|
105 |
+
'true' => __( 'Both ajax search results and search results page', 'aws' ),
|
106 |
+
'false' => __( 'Only ajax search results ( no search results page )', 'aws' ),
|
107 |
+
'ajax_off' => __( 'Only search results page ( no ajax search results )', 'aws' )
|
108 |
)
|
109 |
);
|
110 |
|
languages/aws.pot
CHANGED
@@ -175,10 +175,19 @@ msgstr ""
|
|
175 |
msgid "Show loader animation while searching."
|
176 |
msgstr ""
|
177 |
|
178 |
-
msgid "Search Results
|
179 |
msgstr ""
|
180 |
|
181 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
msgstr ""
|
183 |
|
184 |
#: includes/options.php:49
|
175 |
msgid "Show loader animation while searching."
|
176 |
msgstr ""
|
177 |
|
178 |
+
msgid "Search Results"
|
179 |
msgstr ""
|
180 |
|
181 |
+
msgid "Choose how to view search results."
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
msgid "Both ajax search results and search results page"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
msgid "Only ajax search results ( no search results page )"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
msgid "Only search results page ( no ajax search results )"
|
191 |
msgstr ""
|
192 |
|
193 |
#: includes/options.php:49
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Mihail Barinov
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE37FC4Y7CEY
|
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.9.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,6 +77,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= 1.38 =
|
81 |
* Add 'Clear form' buttom for search form on mobile devices
|
82 |
* Fix bug with not srtiped shortcodes on product description
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE37FC4Y7CEY
|
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.9.5
|
7 |
+
Stable tag: 1.39
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.39 =
|
81 |
+
* Add option to disable ajax search results
|
82 |
+
|
83 |
= 1.38 =
|
84 |
* Add 'Clear form' buttom for search form on mobile devices
|
85 |
* Fix bug with not srtiped shortcodes on product description
|