Skip to content

Commit 022dba0

Browse files
painful protection in Subtotal.php (#650)
protection through which I lost 4 hours of life
1 parent 48939f0 commit 022dba0

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Sales/Model/Quote/Address/Total

1 file changed

+1
-1
lines changed

app/code/core/Mage/Sales/Model/Quote/Address/Total/Subtotal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function _initItem($address, $item)
112112
$item->setPrice($finalPrice)
113113
->setBaseOriginalPrice($finalPrice);
114114
$item->calcRowTotal();
115-
} else if (!$quoteItem->getParentItem() && !$item->getHasError()) {
115+
} else if (!$quoteItem->getParentItem()) {
116116
$finalPrice = $product->getFinalPrice($quoteItem->getQty());
117117
$item->setPrice($finalPrice)
118118
->setBaseOriginalPrice($finalPrice);

0 commit comments

Comments
 (0)