Skip to content

Commit 5a8dade

Browse files
henrykbrzoskaedannenberg
authored andcommitted
[bug-OpenMage#650] Cart price gets deducted on page reload when qty > stock
Steps to reproduce: 1. Disable product backorders (if enabled) 2. Add Stock qty into a product 3. Add product to cart 4. Change product cart qty to something above the available qty 5. Along the error message "The requested quantity for "%s" is not available." the unit price gets deducted. 6. Reload the page and unit price is deducted again. Introduced in 1.9.3.1
1 parent 17cdadf commit 5a8dade

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
@@ -111,7 +111,7 @@ protected function _initItem($address, $item)
111111
$item->setPrice($finalPrice)
112112
->setBaseOriginalPrice($finalPrice);
113113
$item->calcRowTotal();
114-
} else if (!$quoteItem->getParentItem() && !$item->getHasError()) {
114+
} else if (!$quoteItem->getParentItem()) {
115115
$finalPrice = $product->getFinalPrice($quoteItem->getQty());
116116
$item->setPrice($finalPrice)
117117
->setBaseOriginalPrice($finalPrice);

0 commit comments

Comments
 (0)