Version Description
( 2022-03-07 ) = * Update - Admin notices * Fix - WCFM - WooCommerce Multivendor Marketplace plugin integration. Change store link * Fix - Terms scrapping for index table * Dev - Add aws_search_pre_filter_single_product filter * Dev - Make get_products method public
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 2.49 |
Comparing to | |
See all releases |
Code changes from version 2.48 to 2.49
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: 2.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
@@ -96,7 +96,7 @@ final class AWS_Main {
|
|
96 |
*/
|
97 |
private function define_constants() {
|
98 |
|
99 |
-
$this->define( 'AWS_VERSION', '2.
|
100 |
|
101 |
$this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
|
102 |
$this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 2.49
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
96 |
*/
|
97 |
private function define_constants() {
|
98 |
|
99 |
+
$this->define( 'AWS_VERSION', '2.49' );
|
100 |
|
101 |
$this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
|
102 |
$this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
|
includes/admin/class-aws-admin-notices.php
CHANGED
@@ -75,7 +75,7 @@ if ( ! class_exists( 'AWS_Admin_Notices' ) ) :
|
|
75 |
}
|
76 |
|
77 |
if ( class_exists('ACF') && ( ! $hide_option || array_search( 'acf', $hide_option ) === false ) ) {
|
78 |
-
$notice_message .= '<li>' . __( 'Advanced Custom Fields ( ACF ) plugin.', 'advanced-woo-search' ) . ' <a target="_blank" href="https://advanced-woo-search.com/
|
79 |
$notice_id .= 'acf|';
|
80 |
}
|
81 |
|
75 |
}
|
76 |
|
77 |
if ( class_exists('ACF') && ( ! $hide_option || array_search( 'acf', $hide_option ) === false ) ) {
|
78 |
+
$notice_message .= '<li>' . __( 'Advanced Custom Fields ( ACF ) plugin.', 'advanced-woo-search' ) . ' <a target="_blank" href="https://advanced-woo-search.com/features/acf-plugin-support/?utm_source=wp-plugin&utm_medium=integration_notice&utm_campaign=acf">' . __( 'Learn more', 'advanced-woo-search' ) . '</a></li>';
|
79 |
$notice_id .= 'acf|';
|
80 |
}
|
81 |
|
includes/class-aws-search.php
CHANGED
@@ -496,7 +496,7 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
496 |
/*
|
497 |
* Get products info
|
498 |
*/
|
499 |
-
|
500 |
|
501 |
$products_array = array();
|
502 |
|
@@ -678,6 +678,15 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
678 |
'post_data' => $post_data
|
679 |
);
|
680 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
681 |
$products_array[] = $new_result;
|
682 |
|
683 |
wp_reset_postdata();
|
496 |
/*
|
497 |
* Get products info
|
498 |
*/
|
499 |
+
public function get_products( $posts_ids ) {
|
500 |
|
501 |
$products_array = array();
|
502 |
|
678 |
'post_data' => $post_data
|
679 |
);
|
680 |
|
681 |
+
/**
|
682 |
+
* Filter single product search result
|
683 |
+
* @since 2.49
|
684 |
+
* @param array $new_result Product data array
|
685 |
+
* @param int $post_id Product id
|
686 |
+
* @param object $product Product
|
687 |
+
*/
|
688 |
+
$new_result = apply_filters( 'aws_search_pre_filter_single_product', $new_result, $post_id, $product );
|
689 |
+
|
690 |
$products_array[] = $new_result;
|
691 |
|
692 |
wp_reset_postdata();
|
includes/class-aws-table-data.php
CHANGED
@@ -443,6 +443,11 @@ if ( ! class_exists( 'AWS_Table_Data' ) ) :
|
|
443 |
if ( ! empty( $str_array ) && $str_array ) {
|
444 |
foreach( $str_array as $str_item_term => $str_item_num ) {
|
445 |
if ( $str_item_term ) {
|
|
|
|
|
|
|
|
|
|
|
446 |
$new_array_key = AWS_Plurals::singularize( $str_item_term );
|
447 |
|
448 |
if ( $new_array_key && strlen( $str_item_term ) > 3 && strlen( $new_array_key ) > 2 ) {
|
443 |
if ( ! empty( $str_array ) && $str_array ) {
|
444 |
foreach( $str_array as $str_item_term => $str_item_num ) {
|
445 |
if ( $str_item_term ) {
|
446 |
+
|
447 |
+
if ( ! isset( $str_new_array[$str_item_term] ) && preg_match("/es$/", $str_item_term ) ) {
|
448 |
+
$str_new_array[$str_item_term] = $str_item_num;
|
449 |
+
}
|
450 |
+
|
451 |
$new_array_key = AWS_Plurals::singularize( $str_item_term );
|
452 |
|
453 |
if ( $new_array_key && strlen( $str_item_term ) > 3 && strlen( $new_array_key ) > 2 ) {
|
includes/modules/class-aws-wcfm.php
CHANGED
@@ -70,7 +70,7 @@ if ( ! class_exists( 'AWS_WCFM' ) ) :
|
|
70 |
if ( ! $is_store_offline ) {
|
71 |
|
72 |
$store_name = wcfm_get_vendor_store_name( absint( $vendor_id ) );
|
73 |
-
$store_url = $
|
74 |
|
75 |
$logo = '';
|
76 |
|
70 |
if ( ! $is_store_offline ) {
|
71 |
|
72 |
$store_name = wcfm_get_vendor_store_name( absint( $vendor_id ) );
|
73 |
+
$store_url = function_exists('wcfmmp_get_store_url') && $vendor_id ? wcfmmp_get_store_url( $vendor_id ) : '';
|
74 |
|
75 |
$logo = '';
|
76 |
|
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: 5.9
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -167,6 +167,13 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
167 |
|
168 |
== Changelog ==
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
= 2.48 ( 2022-02-21 ) =
|
171 |
* Add - New admin notices about integrations
|
172 |
* Update - Tested with WC 6.2
|
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: 5.9
|
7 |
+
Stable tag: 2.49
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
167 |
|
168 |
== Changelog ==
|
169 |
|
170 |
+
= 2.49 ( 2022-03-07 ) =
|
171 |
+
* Update - Admin notices
|
172 |
+
* Fix - WCFM - WooCommerce Multivendor Marketplace plugin integration. Change store link
|
173 |
+
* Fix - Terms scrapping for index table
|
174 |
+
* Dev - Add aws_search_pre_filter_single_product filter
|
175 |
+
* Dev - Make get_products method public
|
176 |
+
|
177 |
= 2.48 ( 2022-02-21 ) =
|
178 |
* Add - New admin notices about integrations
|
179 |
* Update - Tested with WC 6.2
|