Home Forums Theme Support Dokan Query from dokan_orders table returns always 1

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41062

    FARHAN
    Member
    Post count: 22

    Hello,

    I fetching seller_id value from dokan_orders table. But i am always getting value as 1 pplease tell me what was the issue in this below code. And for debugging purpose i am printing in error log file.
    public function trigger( $order_id ) {
    global $wpdb;
    if ( ! $order_id )
    return;
    error_log(print_r(‘order Id :'.$order_id , true));
    $seller_id = $wpdb->query(“SELECT seller_id FROM wp_dokan_orders WHERE order_id = ‘$order_id'”);

    if($seller_id !=0 ) {
    error_log(print_r(‘Seller Id :'.$seller_id , true));
    }
    }

    Thanks in Advance

    #41087

    Nayem
    Moderator
    Post count: 6480

    Hello Farhan,

    I have to discuss with our developer team. They are now in weekend so please allow me some time. I will inform you tomorrow about this.

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Query from dokan_orders table returns always 1’ is closed to new replies.