diff --git a/Magento_CatalogWidget/templates/product/widget/content/grid.phtml b/Magento_CatalogWidget/templates/product/widget/content/grid.phtml new file mode 100644 index 0000000..403ccba --- /dev/null +++ b/Magento_CatalogWidget/templates/product/widget/content/grid.phtml @@ -0,0 +1,125 @@ + +getProductCollection() && $block->getProductCollection()->getSize())): ?> + getProductCollection()->getItems(); + + $showWishlist = true; + $showCompare = true; + $showCart = true; + $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; + $description = false; + ?> +
+ getBlockHtml('formkey')): ?> + + + diff --git a/Magento_Review/templates/helper/summary_short.phtml b/Magento_Review/templates/helper/summary_short.phtml new file mode 100644 index 0000000..6cd3e5f --- /dev/null +++ b/Magento_Review/templates/helper/summary_short.phtml @@ -0,0 +1,64 @@ +getReviewsUrl() . '#reviews'; +$urlForm = $block->getReviewsUrl() . '#review-form'; + +$displayIfEmpty = $block->getDisplayIfEmpty(); +$listPage = in_array($block->getRequest()->getFullActionName(), ['cms_index_index', 'catalogsearch_result_index', 'catalog_category_view']); + +if ($listPage) { + $displayIfEmpty = true; +} +//if ($block->getRequest()->getActionName()) + +?> +isReviewEnabled() && $block->getReviewsCount()): ?> + getRatingSummary(); ?> + +isReviewEnabled() && $displayIfEmpty): ?> +