Skip to content

Commit

Permalink
Merge pull request #33 from zolthan/master
Browse files Browse the repository at this point in the history
[TASK] issue#31 - Fatal Error for Grouped Products without active child
  • Loading branch information
sydekumf authored Sep 23, 2018
2 parents 3b073f1 + e5265af commit 5fc7267
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Model/Plugin/AfterPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ protected function getAfterPriceHtml(SaleableInterface $product)
$product = $product->getPriceInfo()
->getPrice(FinalPrice::PRICE_CODE)
->getMinProduct();

// check if we found a product
if (!$product) return '';
}

// check if price for current product has been rendered before
Expand Down

0 comments on commit 5fc7267

Please sign in to comment.