Query from dokan_orders table returns always 1

This topic contains 1 reply and 2 voices, and was last updated by Nayem 9 years, 7 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 10, 2015 at 9:39 pm 41062
Nayem 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
April 11, 2015 at 1:12 pm 41087
Nayem Nayem

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 1 Posts - 1 through 1 (of 1 total)