Package splited by vendor
-
Hello.
Your plugin is perfect to my solution, thank you for that!
But I’m integrating my site with a payment gateway called Pagar.Me, and I need to pass the shipping cost in a JSON.
Pagar.me allow me to pass the value of the seller, and the value of the admin. And, in some cases, the shipping is responsibility of the vendor, and some cases, the shipping is responsibility of the admin.
To do that, I tried to get the shipping informations of the order:
$order_shippings = $order->get_items('shipping');
But I don’t the information about the vendor:
[data:protected] => Array ( [order_id] => 1064 [name] => Taxa fixa [method_title] => Taxa fixa [method_id] => flat_rate [instance_id] => 1 [total] => 7.00 [total_tax] => 0 [taxes] => Array ( [total] => Array ( ) ) ) [meta_data:protected] => Array ( [0] => WC_Meta_Data Object ( [current_data:protected] => Array ( [id] => 4536 [key] => Itens [value] => Produto de Teste 1 × 1 ) [data:protected] => Array ( [id] => 4536 [key] => Itens [value] => Produto de Teste 1 × 1 ) ) )
How can I get the vendor of each shipping item?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Package splited by vendor’ is closed to new replies.