Skip to content

Commit b88f076

Browse files
authored
Update Processor.php
Fix free payment method for products with custom price zero
1 parent adc4105 commit b88f076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Quote/Item/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function prepare(Item $item, DataObject $request, Product $candidate): vo
101101
}
102102

103103
$customPrice = $request->getCustomPrice();
104-
if (!empty($customPrice) && !$candidate->getParentProductId()) {
104+
if ($customPrice !== null && !$candidate->getParentProductId()) {
105105
$item->setCustomPrice($customPrice);
106106
$item->setOriginalCustomPrice($customPrice);
107107
}

0 commit comments

Comments
 (0)