Plugin Directory

Changeset 3331502


Ignore:
Timestamp:
07/21/2025 12:58:20 PM (8 months ago)
Author:
simonefontana
Message:

Update plugin version 2.0.1

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

Legend:

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

    r3331383 r3331502  
    55Requires PHP: 7.0
    66Tested up to: 6.8
    7 Stable tag: 2.0
     7Stable tag: 2.0.1
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.txt
     
    6161
    6262== Changelog ==
     63= 2.0.1 =
     64* Fix bug results pages filter
     65
    6366= 2.0 =
    6467* Added the ability to filter by acf fields
  • sf-autosuggest-product-search/trunk/assets/js/sf_pa.js

    r3027301 r3331502  
    6868
    6969        jQuery('.sf_pa_search_input_container').on('click', '.sf_pa_autosuggest_all_res', function(e){
     70            //add to jQuery(this).closest('.sf_pa_search_input_container').find('form') hidden input with search value
     71            jQuery(this).closest('.sf_pa_search_input_container').find('form').append('<input type="hidden" name="sf_search" value="true">');
    7072            jQuery(this).closest('.sf_pa_search_input_container').find('form').submit();
    7173        });
  • sf-autosuggest-product-search/trunk/classes/ResultsPageClass.php

    r3170602 r3331502  
    2323                    $posts_id[] =  $product->ID;
    2424            }
     25            //Reset standard query and add custom results
     26            $query->set( 's', '' );
    2527            $query->set( 'post__in', $posts_id );
     28           
    2629        }
    2730    }
  • sf-autosuggest-product-search/trunk/sf_products_autosuggest.php

    r3331383 r3331502  
    33* Plugin Name: SF Autosuggest Product Search
    44* Description: Autosuggest Product Search for Woocommerce
    5 * Version: 2.0
     5* Version: 2.0.1
    66* Author: Simone Fontana
    77* Author URI: https://www.simonefontana.net/
     
    1414}
    1515
    16 const SF_VERSION = "2.0";
     16const SF_VERSION = "2.0.1";
    1717
    1818/* Add style and script to plugin*/
Note: See TracChangeset for help on using the changeset viewer.