mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Merge pull request #168 from woocommerce/PCP-136-product-quantity-not-being-turne
Cast item `get_quantity` into `int`
This commit is contained in:
commit
4859980b88
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class ItemFactory {
|
|||
*
|
||||
* @var \WC_Product $product
|
||||
*/
|
||||
$quantity = $item->get_quantity();
|
||||
$quantity = (int) $item->get_quantity();
|
||||
|
||||
$price = (float) $order->get_item_subtotal( $item, true );
|
||||
$price_without_tax = (float) $order->get_item_subtotal( $item, false );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue