Skip to content

Commit 75cc84f

Browse files
Hwashiang YuStanislav Idolov
authored andcommitted
MC-3857: Products Content Type is broken on Dynamic Block page
- Removed uneeded conditional from producslist.php
1 parent 8979a7e commit 75cc84f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/code/Magento/CatalogWidget/Block/Product/ProductsList.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,12 @@ public function getProductPriceHtml(
207207
);
208208
}
209209

210-
$price = '';
211-
if ($priceRender) {
212-
$price = $priceRender->render(
213-
\Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE,
214-
$product,
215-
$arguments
216-
);
217-
}
210+
$price = $priceRender->render(
211+
\Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE,
212+
$product,
213+
$arguments
214+
);
215+
218216
return $price;
219217
}
220218

0 commit comments

Comments
 (0)