mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #1362 from woocommerce/PCP-1610-free-items
Do not exclude free items
This commit is contained in:
commit
b52b0f32df
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class PurchaseUnitFactory {
|
|||
$items = array_filter(
|
||||
$this->item_factory->from_wc_order( $order ),
|
||||
function ( Item $item ): bool {
|
||||
return $item->unit_amount()->value() > 0;
|
||||
return $item->unit_amount()->value() >= 0;
|
||||
}
|
||||
);
|
||||
$shipping = $this->shipping_factory->from_wc_order( $order );
|
||||
|
@ -166,7 +166,7 @@ class PurchaseUnitFactory {
|
|||
$items = array_filter(
|
||||
$this->item_factory->from_wc_cart( $cart ),
|
||||
function ( Item $item ): bool {
|
||||
return $item->unit_amount()->value() > 0;
|
||||
return $item->unit_amount()->value() >= 0;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue