Skip to main content
9 events
when toggle format what by license comment
Dec 12, 2017 at 5:07 comment added Jaisa Let us continue this discussion in chat.
Dec 12, 2017 at 5:06 comment added Salma Saiyad use this in your block constructor (\Magento\Review\Model\ResourceModel\Review\CollectionFactory $collectionFactory,){ $this->_reviewsColFactory = $collectionFactory;} $collection = $this->_reviewsColFactory->create()->addStoreFilter( $this->_storeManager->getStore()->getId() )->addStatusFilter( \Magento\Review\Model\Review::STATUS_APPROVED )->addEntityFilter( 'product', $this->getProductId() );
Dec 12, 2017 at 5:03 comment added Jaisa Please see the updated post @Salma Saiyad
Dec 12, 2017 at 5:03 comment added Salma Saiyad <container name="custom.product.section"> <block class="Magento\Review\Block\Product\Review" name="custom.product.section.info" template="XXX_YYY::abc.phtml"/> </container>
Dec 12, 2017 at 4:59 comment added Jaisa I have added the block ,But how to get the reviews collection in block
Dec 12, 2017 at 4:58 comment added Salma Saiyad Add above block in your prefered container with updating the path template="XXX_YYY::abc.phtml"
Dec 12, 2017 at 4:56 comment added Jaisa In my code i need to call customer reviews collection in abc.phtml from the block
Dec 12, 2017 at 4:55 comment added Jaisa Thank you for your response. I have created the section to display the customer reviews ,Please see the updated post
Dec 12, 2017 at 4:47 history answered Salma Saiyad CC BY-SA 3.0