XStore Search -> WordPress Database error

This topic has 27 replies, 2 voices, and was last updated 6 years, 7 months ago ago by Olga Barlow

  • Avatar: kumapanda
    kumapanda
    Participant
    September 15, 2017 at 08:54

    Dashboard warning says I have to reactivate the plugin…

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 15, 2017 at 09:33

    Hello,

    Yes, unfortunately, when you activate plugin it displays only products for the non-logged in users and we can’t find the reason why.

    Regards

    Avatar: kumapanda
    kumapanda
    Participant
    September 15, 2017 at 09:42

    Maybe can you tell me the changes and I ask the Wholesale Plugin team?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 18, 2017 at 14:47

    Hello,

    Changes were made in searchform.php and functions.php files of the child theme.

    Regards

    Avatar: kumapanda
    kumapanda
    Participant
    September 18, 2017 at 18:45

    Hello Olga,

    when can I remove the searchform.php and the functions.php? Do you will or had integrate that changes in xstore theme?

    I’m in contact with the developers of wholesale suite too. They answered: “Yes, we are aware of this issue. Our developers are working on an update that includes the fix for this issue. But currently, we don’t have ETA yet.”…

    They provided that code for functions.php:

    
    add_action( 'pre_get_posts' , 'my_wwpp_pre_get_posts', 11);
    function my_wwpp_pre_get_posts($query){
        
        if ( ! $query->is_main_query() || isset($_GET['post_type']) ) return;
        
        $query->set( 'meta_query' , array() );
        $query->set( 'post_type' , 'post' );
    } 
    

    But after adding that code I only got 404 errors so I had to remove it…

    BEst regards and thank your for the good support. I extended my license today :).

    Avatar: kumapanda
    kumapanda
    Participant
    September 19, 2017 at 09:24

    Hi Olga,

    the Wholesale Team provided a fix with the last update.

    So I removed the changes from functions.php and searchform.php.

    Please see hidden content.

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 20, 2017 at 12:49

    Hello,

    I’ll send your request to our developers and they will try to implement if it doesn’t break all the other features. Meanwhile, if you want to have the search by all the content you just need to leave customization that we made in child theme.

    Regards

  • 1 2
    Viewing 27 results - 21 through 27 (of 27 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.