Right now I'm building a custom module and I am not able to get the frequently bought product collection in the frontend from the backend. if anyone has any idea about it then please advise!

1 Answer 1


You can use this block to get the related products please use this code in your module layout files.

 <block class="Magento\Catalog\Block\Product\ProductList\Related" name="catalog.product.related" template="Magento_Catalog::product/list/items.phtml">
                    <argument name="type" xsi:type="string">related</argument>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.