Skip to content

Commit

Permalink
Merge pull request #914 from inbaz/develop
Browse files Browse the repository at this point in the history
corrected price in product controller for frontend
  • Loading branch information
BigAndini authored Feb 17, 2017
2 parents 2285e82 + a611e67 commit 7378be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/PreReg/src/PreReg/Controller/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function indexAction()
->findOneBy(array('short' => $container->currency));
$products = array();
foreach($tmp as $product) {
if($product->getProductPrice(null, null, $currency)->getCharge() != null) {
$price = $product->getProductPrice(null, null, $currency);
if($price != null && $price->getCharge() != null) {
$products[] = $product;
}
}
Expand Down

0 comments on commit 7378be9

Please sign in to comment.