Plugin Directory

Changeset 3170602


Ignore:
Timestamp:
10/17/2024 09:43:37 AM (18 months ago)
Author:
simonefontana
Message:

Update plugin version 1.7

Location:
sf-autosuggest-product-search
Files:
42 added
4 edited

Legend:

Unmodified
Added
Removed
  • sf-autosuggest-product-search/trunk/README.txt

    r3102388 r3170602  
    44Requires at least: 3.8.8
    55Requires PHP: 7.0
    6 Tested up to: 6.5
    7 Stable tag: 1.6.1
     6Tested up to: 6.6
     7Stable tag: 1.7
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    5858
    5959== Changelog ==
     60= 1.7 =
     61* Added the ability to filter results page
     62
    6063= 1.6.1 =
    6164* Added HPOS compatibility
  • sf-autosuggest-product-search/trunk/classes/AdminClass.php

    r3068367 r3170602  
    144144                                'instruction' => __('Words that should be ignored by the search. Write them divided by "|".', 'sf_products_autosuggest')
    145145                            ),
    146 
     146                            array(
     147                                'title' => __('Use same filter in Results page', 'sf_products_autosuggest'),
     148                                'section' => 'sf_pa_apparance',
     149                                'key' => 'filter_in_results_page',
     150                                'input' => 'checkbox',
     151                                'instruction' => __('Check if you want use the same filter in results page', 'sf_products_autosuggest')
     152                            )
    147153                        );
    148154   
     
    249255            $newinput['show_price'] = $validator->checkbox($input['show_price']);
    250256        }
     257        if(isset($input['show_price']) && !empty($input['filter_in_results_page'])){
     258            $newinput['filter_in_results_page'] = $validator->checkbox($input['filter_in_results_page']);
     259        }
    251260        $newinput['exclude_cat'] = $validator->ids($input['exclude_cat']);
    252261        $newinput['exclude_ids'] =  $validator->ids($input['exclude_ids']);
  • sf-autosuggest-product-search/trunk/classes/SearchClass.php

    r3068367 r3170602  
    6767                $prepare[] = $this->options['exclude_ids'];
    6868            }
     69
     70            if(isset($this->options['exclude_cat']) && !empty($this->options['exclude_cat'])){
     71                $sql .=  "AND ".$wpdb->prefix."terms.term_id NOT IN (%s)";
     72                $prepare[] = $this->options['exclude_cat'];
     73            }
     74
    6975            if(isset($this->options['results_count']) && !empty($this->options['results_count'])){
    7076                $this->count = $this->options['results_count'];
  • sf-autosuggest-product-search/trunk/sf_products_autosuggest.php

    r3102388 r3170602  
    33* Plugin Name: SF Autosuggest Product Search
    44* Description: Autosuggest Product Search for Woocommerce
    5 * Version: 1.6.1
     5* Version: 1.7
    66* Author: Simone Fontana
    77* Author URI: https://www.simonefontana.net/
    88* WC requires at least: 3.0.0
    9 * WC tested up to: 8.9
     9* WC tested up to: 9.3
    1010**/
    1111
     
    1414}
    1515
    16 const SF_VERSION = "1.6.1";
     16const SF_VERSION = "2.0";
    1717
    1818/* Add style and script to plugin*/
     
    9090include 'classes/AdminClass.php';
    9191include 'classes/FeedbackClass.php';
     92include 'classes/ResultsPageClass.php';
Note: See TracChangeset for help on using the changeset viewer.