Version Description
- Fixed: Support to WPML
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Search |
Version | 1.3.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.3.4
- README.txt +5 -3
- assets/js/frontend.js +2 -1
- assets/js/frontend.min.js +1 -1
- class.yith-wcas-frontend.php +3 -1
- class.yith-wcas.php +2 -1
- init.php +2 -2
- languages/yit.pot +3 -2
- wpml-config.xml +2 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -42,7 +42,7 @@ Important: First of all, you have to download and activate WooCommerce plugin, w
|
|
42 |
YITH WooCommerce Ajax Search will add a new tab called "Ajax Search" in "YIT Plugins" menu item. There, you will find all Yithemes plugins with quick access to plugin setting page.
|
43 |
|
44 |
== Suggestions ==
|
45 |
-
If you have any suggestions concerning how to improve YITH
|
46 |
|
47 |
== Translators ==
|
48 |
|
@@ -61,8 +61,10 @@ If you have created your own language pack, or have an update for an existing on
|
|
61 |
2. The plugin at work displaying the ajax search results
|
62 |
|
63 |
== Changelog ==
|
64 |
-
= 1.3.
|
|
|
65 |
|
|
|
66 |
* Fixed: Called to WP_Widget construct
|
67 |
* Fixed: Support to WPML
|
68 |
|
4 |
Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.3.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
42 |
YITH WooCommerce Ajax Search will add a new tab called "Ajax Search" in "YIT Plugins" menu item. There, you will find all Yithemes plugins with quick access to plugin setting page.
|
43 |
|
44 |
== Suggestions ==
|
45 |
+
If you have any suggestions concerning how to improve YITH WooCommerce Ajax Search, you can [write to us](mailto:plugins@yithemes.com "Your Inspiration Themes"), so that we can improve YITH WooCommerce Ajax Search.
|
46 |
|
47 |
== Translators ==
|
48 |
|
61 |
2. The plugin at work displaying the ajax search results
|
62 |
|
63 |
== Changelog ==
|
64 |
+
= 1.3.4 =
|
65 |
+
* Fixed: Support to WPML
|
66 |
|
67 |
+
= 1.3.3 =
|
68 |
* Fixed: Called to WP_Widget construct
|
69 |
* Fixed: Support to WPML
|
70 |
|
assets/js/frontend.js
CHANGED
@@ -31,7 +31,8 @@ jQuery(document).ready(function ($) {
|
|
31 |
el.yithautocomplete({
|
32 |
minChars : min_chars,
|
33 |
appendTo : append_to,
|
34 |
-
|
|
|
35 |
onSearchStart : function () {
|
36 |
$t.css({'background-image': 'url(' + loader_icon + ')','background-repeat': 'no-repeat', 'background-position': 'center right'});
|
37 |
},
|
31 |
el.yithautocomplete({
|
32 |
minChars : min_chars,
|
33 |
appendTo : append_to,
|
34 |
+
triggerSelectOnValidInput: false,
|
35 |
+
serviceUrl : yith_wcas_params.ajax_url + '?action=yith_ajax_search_products',
|
36 |
onSearchStart : function () {
|
37 |
$t.css({'background-image': 'url(' + loader_icon + ')','background-repeat': 'no-repeat', 'background-position': 'center right'});
|
38 |
},
|
assets/js/frontend.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
jQuery(document).ready(function(b){var a=b(".yith-s"),c="undefined"!=typeof woocommerce_params&&"undefined"!=typeof woocommerce_params.ajax_loader_url?woocommerce_params.ajax_loader_url:yith_wcas_params.loading,e=""==a.data("loader-icon")?c:a.data("loader-icon"),c=b("#yith-searchsubmit"),f=a.data("min-chars");c.on("click",function(){return""==b(this).closest("form").find(".yith-s").val()?!1:!0});0==a.length&&(a=b("#yith-s"));a.each(function(){var d=b(this),c="undefined"==typeof d.data("append-to")?
|
2 |
-
d.closest(".yith-ajaxsearchform-container"):d.data("append-to");a.yithautocomplete({minChars:f,appendTo:c,serviceUrl:
|
1 |
jQuery(document).ready(function(b){var a=b(".yith-s"),c="undefined"!=typeof woocommerce_params&&"undefined"!=typeof woocommerce_params.ajax_loader_url?woocommerce_params.ajax_loader_url:yith_wcas_params.loading,e=""==a.data("loader-icon")?c:a.data("loader-icon"),c=b("#yith-searchsubmit"),f=a.data("min-chars");c.on("click",function(){return""==b(this).closest("form").find(".yith-s").val()?!1:!0});0==a.length&&(a=b("#yith-s"));a.each(function(){var d=b(this),c="undefined"==typeof d.data("append-to")?
|
2 |
+
d.closest(".yith-ajaxsearchform-container"):d.data("append-to");a.yithautocomplete({minChars:f,appendTo:c,triggerSelectOnValidInput:!1,serviceUrl:yith_wcas_params.ajax_url+"?action=yith_ajax_search_products",onSearchStart:function(){d.css({"background-image":"url("+e+")","background-repeat":"no-repeat","background-position":"center right"})},onSelect:function(a){-1!=a.id&&(window.location.href=a.url)},onSearchComplete:function(){d.css("background-image","none")}})})});
|
class.yith-wcas-frontend.php
CHANGED
@@ -56,7 +56,9 @@ if( !class_exists( 'YITH_WCAS_Frontend' ) ) {
|
|
56 |
wp_enqueue_style( 'yith_wcas_frontend', $css );
|
57 |
|
58 |
wp_localize_script( 'yith_wcas_frontend', 'yith_wcas_params', array(
|
59 |
-
'loading' => YITH_WCAS_ASSETS_IMAGES_URL.'ajax-loader.gif'
|
|
|
|
|
60 |
));
|
61 |
|
62 |
wp_enqueue_script('yith_autocomplete' );
|
56 |
wp_enqueue_style( 'yith_wcas_frontend', $css );
|
57 |
|
58 |
wp_localize_script( 'yith_wcas_frontend', 'yith_wcas_params', array(
|
59 |
+
'loading' => YITH_WCAS_ASSETS_IMAGES_URL.'ajax-loader.gif',
|
60 |
+
'ajax_url' => admin_url( 'admin-ajax.php' )
|
61 |
+
|
62 |
));
|
63 |
|
64 |
wp_enqueue_script('yith_autocomplete' );
|
class.yith-wcas.php
CHANGED
@@ -122,7 +122,7 @@ if ( !class_exists( 'YITH_WCAS' ) ) {
|
|
122 |
public function ajax_search_products() {
|
123 |
global $woocommerce;
|
124 |
|
125 |
-
$search_keyword =
|
126 |
|
127 |
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
|
128 |
$suggestions = array();
|
@@ -155,6 +155,7 @@ if ( !class_exists( 'YITH_WCAS' ) ) {
|
|
155 |
) );
|
156 |
}
|
157 |
|
|
|
158 |
$products = get_posts( $args );
|
159 |
|
160 |
if ( !empty( $products ) ) {
|
122 |
public function ajax_search_products() {
|
123 |
global $woocommerce;
|
124 |
|
125 |
+
$search_keyword = $_REQUEST['query'];
|
126 |
|
127 |
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
|
128 |
$suggestions = array();
|
155 |
) );
|
156 |
}
|
157 |
|
158 |
+
|
159 |
$products = get_posts( $args );
|
160 |
|
161 |
if ( !empty( $products ) ) {
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -59,7 +59,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
|
59 |
if ( defined( 'YITH_WCAS_VERSION' ) ){
|
60 |
return;
|
61 |
}else{
|
62 |
-
define( 'YITH_WCAS_VERSION', '1.3.
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
|
6 |
+
* Version: 1.3.4
|
7 |
* Author: Yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
59 |
if ( defined( 'YITH_WCAS_VERSION' ) ){
|
60 |
return;
|
61 |
}else{
|
62 |
+
define( 'YITH_WCAS_VERSION', '1.3.4' );
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
languages/yit.pot
CHANGED
@@ -2,18 +2,19 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Ajax Search Free\n"
|
4 |
"POT-Creation-Date: 2015-04-24 14:41+0100\n"
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Yithemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
|
|
17 |
|
18 |
#: ../class.yith-wcas-admin.php:106 ../class.yith-wcas-admin.php:128
|
19 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Ajax Search Free\n"
|
4 |
"POT-Creation-Date: 2015-04-24 14:41+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-07-17 09:42+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: Yithemes <plugins@yithemes.com>\n"
|
8 |
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.7.6\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ./\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
17 |
+
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
18 |
|
19 |
#: ../class.yith-wcas-admin.php:106 ../class.yith-wcas-admin.php:128
|
20 |
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
|
wpml-config.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<wpml-config>
|
2 |
<admin-texts>
|
3 |
-
<key name="yith_wcas_search_input_label"
|
4 |
-
<key name="yith_wcas_search_submit_label"
|
5 |
</admin-texts>
|
6 |
</wpml-config>
|
1 |
<wpml-config>
|
2 |
<admin-texts>
|
3 |
+
<key name="yith_wcas_search_input_label" />
|
4 |
+
<key name="yith_wcas_search_submit_label" />
|
5 |
</admin-texts>
|
6 |
</wpml-config>
|