Forum Replies Created

Viewing 1 replies (of 1 total)
  • giuseppeimperioso

    (@giuseppeimperioso)

    Hi, we have the same problem, it’s about malformed query generated by method “get_products” in class.yith-wcwl.php

    I have fixed as follow the method:

    Line 620-633:

    if( ! empty( $id ) ){
                        $sql .= " AND <code>i.ID</code> = %d";
                        $sql_args[] = $id;
                    }
    
                    $sql .= " GROUP BY i.prod_id, l.ID";
    
                    if( ! empty( $limit ) ){
                        $sql .= " LIMIT " . $offset . ", " . $limit;
                    }
    
                    $wishlist = $wpdb->get_results( $wpdb->prepare( $sql, $sql_args ), ARRAY_A );

    Complete File
    Ciao 😀

Viewing 1 replies (of 1 total)