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.

1 Answer 1

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.