Merge branch 'trunk' into PCP-860-apm

This commit is contained in:
Alex P 2023-06-27 15:54:06 +03:00
commit 2b566fcf44
No known key found for this signature in database
GPG key ID: 54487A734A204D71
14 changed files with 292 additions and 43 deletions

View file

@ -112,7 +112,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 );
@ -168,7 +168,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;
}
);