Plugin Directory

Changeset 2595114


Ignore:
Timestamp:
09/07/2021 02:11:49 PM (5 years ago)
Author:
custom4web
Message:

Add compatibiliti with the theme Irankala and the plugin Advanced AJAX Product Filters

Location:
growanizer/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • growanizer/trunk/growanizer.php

    r2576583 r2595114  
    44 * Plugin Name: Growanizer
    55 * Description: The new generation of smart sales for WooCommerce.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: Custom4Web
    88 * Author URI: https://www.custom4web.com/
     
    3838        const ADMIN_PATH   = 'admin';
    3939        const MODULES_PATH   = 'modules';
    40         const VERSION      = '1.0.1';
     40        const VERSION      = '1.0.2';
    4141        const PREFIX       = 'growanizer_';
    4242
  • growanizer/trunk/modules/growanizer-product-finder/includes/class-growpf-query.php

    r2574491 r2595114  
    9090            // Remove post type archive name from front page title tag.
    9191            add_filter('post_type_archive_title', '__return_empty_string', 5);
     92
     93            $pf_rule_id = isset($_GET['pf-rule-id']) ? sanitize_key($_GET['pf-rule-id']) : '';
     94            self::$pf_rule_id = $pf_rule_id;
     95            $this->set_pf_rule_meta($q);
     96
     97            $this->product_query($q);
    9298        } elseif (!$q->is_post_type_archive('product') && !$q->is_tax(get_object_taxonomies('product'))) {
    9399            // Only apply to product categories, the product post archive, the shop page, product tags, and product attribute taxonomies.
    94100            return;
    95101        }
    96 
    97         $pf_rule_id = isset($_GET['pf-rule-id']) ? sanitize_key($_GET['pf-rule-id']) : '';
    98         self::$pf_rule_id = $pf_rule_id;
    99         $this->set_pf_rule_meta($q);
    100 
    101         $this->product_query($q);
    102102    }
    103103
  • growanizer/trunk/modules/growanizer-related-products/includes/class-growrp-post-type.php

    r2574491 r2595114  
    7878        }
    7979
     80        $maybe_irk_order_by_stock = has_filter('posts_clauses', 'irk_order_by_stock');
     81        if( $maybe_irk_order_by_stock ) {
     82            remove_filter( 'posts_clauses', 'irk_order_by_stock', $maybe_irk_order_by_stock );
     83        }
     84
    8085        if( is_product() ) {
    8186            $rule_ids = $this->match_rule( $post->ID );
     
    9196                $this->template->rules = $rules;
    9297            }
     98        }
     99
     100        if( $maybe_irk_order_by_stock ) {
     101            add_filter( 'posts_clauses', 'irk_order_by_stock', $maybe_irk_order_by_stock );
    93102        }
    94103    }
  • growanizer/trunk/readme.txt

    r2582143 r2595114  
    66Tested up to: 5.8.0
    77Requires PHP: 7.0
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    61611.0.0 Initial release
    6262
    63 1.0.1 Added compatibility with the Pro version of the plugin when uninstalling one of the plugins.
     631.0.1 Added compatibility with the Pro version of the plugin when uninstalling one of the plugins.
     64
     651.0.2 Added compatibility with theme Irankala. Fixed incompatibility with the plugin Advanced AJAX Product Filters for WooCommerce.
Note: See TracChangeset for help on using the changeset viewer.