• Hi with your plugin the product search is not working.

    I have a solution, please fix it in the next update. You have to change the following code in the class-wc-psad.php

    Change this code:

    class WC_PSAD
    {

    public function __construct() {
    $this->init();
    }

    public function init () {

    global $psad_queries_cached_enable;
    $psad_queries_cached_enable = get_option( ‘psad_queries_cached_enable’, ‘no’ );

    add_filter(‘loop_shop_per_page’, array( $this, ‘limit_posts_per_page’),99);

    To this code:

    class WC_PSAD
    {

    public function __construct() {
    $this->init();
    }

    public function init () {
    if($_GET[“post_type”] == “product”){ return false;};
    global $psad_queries_cached_enable;
    $psad_queries_cached_enable = get_option( ‘psad_queries_cached_enable’, ‘no’ );

    add_filter(‘loop_shop_per_page’, array( $this, ‘limit_posts_per_page’),99);

  • The topic ‘Please fix search bug’ is closed to new replies.