360Notify Woocommerce

Fill this field to enable WhatsApp feature for vendor

get_vendor_id_from_item( $vendor_data['item'] ), 'notifysms_phone', true ); } public function get_vendor_country_from_vendor_data($vendor_data){ $selected_country_code = notifysms_get_options( 'notifysms_woocommerce_country_code', 'notifysms_setting', '' );//Get default country v1.1.17 return $selected_country_code; } public function get_vendor_shop_name_from_vendor_data( $vendor_data ) { return $vendor_data['vendor_profile']->name; } public function get_vendor_id_from_item( WC_Order_Item $item ) { return $this->get_vendor_profile_from_item( $item )->get_owner(); } public function get_vendor_profile_from_item( WC_Order_Item $item ) { return yith_get_vendor( $item->get_product(), 'product' ); } public function get_vendor_data_list_from_order( $order_id ) { if ( get_post_field( 'post_parent', $order_id ) === 0 ) { return false; } $order = wc_get_order( $order_id ); $items = $order->get_items(); $vendor_data_list = array(); foreach ( $items as $item ) { $vendor_data_list[] = array( 'item' => $item, 'vendor_user_id' => $this->get_vendor_id_from_item( $item ), 'vendor_profile' => $this->get_vendor_profile_from_item( $item ) ); } $this->log->add( '360MessengerWhatsApp', 'Raw data: ' . wp_json_encode( $vendor_data_list ) ); return $this->perform_grouping( $vendor_data_list ); } }