0

I would like to display (random) products of the same category on a product view page. Such that when you're at a product page, there are other products of the same category listed below.

I've Googled for 2 days now but can't find any solutions.

I guess we first need to get the current category and use that to get products from the database. However, I have no idea where to start or how to create a custom module/plugin.

closed as unclear what you're asking by Keyul Shah, Siarhey Uchukhlebau, liyakat, Prince Patel, Manthan Dave Jul 20 '17 at 7:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

I did that for with dynamic related products (upsells): Random products from same category with parent category fill up

Magento 2 still has the same event, catalog_product_upsell, so the code should be relatively easy to port.

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