Skip to content

Commit 224b118

Browse files
author
Vladyslav Shcherbyna
committed
MAGETWO-44198: Unable to create order from admin for user created by Sample Data
1 parent e3593ae commit 224b118

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getFinalPrice($qty, $product)
2121
if ($qty === null && $product->getCalculatedFinalPrice() !== null) {
2222
return $product->getCalculatedFinalPrice();
2323
}
24-
if ($product->getCustomOption('simple_product')) {
24+
if ($product->getCustomOption('simple_product') && $product->getCustomOption('simple_product')->getProduct()) {
2525
return parent::getFinalPrice($qty, $product->getCustomOption('simple_product')->getProduct());
2626
} else {
2727
$priceInfo = $product->getPriceInfo();

0 commit comments

Comments
 (0)