Object instead of string causes quantity to be wrong
-
Hi!
In
classes/class-wc-qd-invoice-manager.php:96
the entire $item object is being sent to get_item_count(), generating faulty quantities.It should be the item type as a string, and i’ve changed it manually in my version of the plugin:
'quantity' => $order->get_item_count( $item['type'] )
Would be great if you included this change in future updates!
Thanks for a very helpful plugin!
- The topic ‘Object instead of string causes quantity to be wrong’ is closed to new replies.