Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • @tks47 in my experience the support of asanaplugins is amasing. In my situation they responded both times within the day when i asked for help and they didnt giveup until the problem was fixed several troubleshooting efforts later. If anything, their support is awesome!

    Thread Starter Cityproject

    (@nikpar)

    I tried extending the admin search with the following function:

    add_filter( 'posts_search', 'woocommerce_search_product_tag_extended', 999, 2 );
    function woocommerce_search_product_tag_extended( $search, $query ) {
        global $wpdb, $wp;
    
        $qvars = $wp->query_vars;
    
        if ( is_admin() || empty($search) ||  ! ( isset($qvars['s'])
        && isset($qvars['post_type']) && ! empty($qvars['s'])
        && $qvars['post_type'] === 'product' ) ) {
            return $search;
        }
        
        // Here set your custom taxonomy
        $taxonomy = 'berocket_brand'; // WooCommerce product tag
    
        // Get the product Ids
        $ids = get_posts( array(
            'posts_per_page'  => -1,
            'post_type'       => 'product',
            'post_status'     => 'publish',
            'fields'          => 'ids',
            'tax_query'       => array( array(
                'taxonomy' => $taxonomy,
                'field'    => 'name',
                'terms'    => esc_attr($qvars['s']),
            )),
        ));
    
        if ( count( $ids ) > 0 ) {
            $search = str_replace( 'AND (((', "AND ((({$wpdb->posts}.ID IN (" . implode( ',', $ids ) . ")) OR (", $search);
        }
        return $search;
    }

    but it doesnt work. Any ideas anyone?

    Thread Starter Cityproject

    (@nikpar)

    Excelent, thank you very much, i had missed that setting, everything solved, thank you.

    Thread Starter Cityproject

    (@nikpar)

    Wonderful, it worked great. You rock, thank you very much!

    Thread Starter Cityproject

    (@nikpar)

    Thanks for your answer. I dont want to get the value of the input, i need to set the name attribute of the input to the same as the ID set to the field.

    eg. based on you example, i need the input to become <input … name=’rnField1′ …>

    Thread Starter Cityproject

    (@nikpar)

    Thank you very much, your answer changed the way i was planning to implement the form, your rock!

    Thread Starter Cityproject

    (@nikpar)

    Thank you very much, updated the plugin to 1.6.3 and it works great now!

    Thread Starter Cityproject

    (@nikpar)

    Hi Madars,

    Thanks for the screenshot, had missed that one, is exactly what I need, will grab it Monday morning.

    Something else that happens is the update of a popup. When I edit any of them i get the message/error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’email-popup-preview modal-popup” style=”width: 600px; box-shadow: rgba(34, 34, 3′ at line 1]
    UPDATE kf_popup_manager SET popup_html=”<div class=”email-popup-preview modal-popup” style=”width: 600px; box-shadow: rgba(34, 34, 34, 0.2) 0px 0px 5px 0px; background: url(“https://2016.musicaparaelalma.org/wp-content/uploads/2016/08/2016-07-pirovano-desta-1120×467.jpg&#8221;) no-repeat;”><div class=”email-popup-preview-inner”><style type=”text/css”>.email-popup-preview input:not([type=submit]) {border-radius: 0px;padding: 10px 12px;font-size: 15px;margin-bottom: 0;}.email-popup-main-form .form-inpu (code continues to complete the html)

    Thiw results in not being able to save any changes after i first make a popup. I bypassed that by making new ones with the changes but afte the 3rd i now get the following when i first try to save:

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 727

    Warning: Invalid argument supplied for foreach() in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 727

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 748

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 749

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 750

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 751

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 752

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 753

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 754

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 755

    Notice: Trying to get property of non-object in /home/*****/wp-content/plugins/popup-manager/popup-manager.php on line 762

    And the new popup isnt working. These two might be related, not sure. The addon might fix this issue?

    Best regards,
    Nikos Paraskevopoulos

Viewing 8 replies - 1 through 8 (of 8 total)