I am trying to create a relation between a bundled product and a virtual product. So I thought: "Let's just add the virtual product as related product."

However it was not showing in the related product list. After some trial and error (i.e. adding all products as related and see which were omitted) I found that it was only omitting virtual products from the related product list.

My question is:

Is this normal Magento (CE behaviour? (I am editing an already active Magento installation) If so, why are virtual products omitted by default? How do I include them in the related products list?


From what I can tell by looking at Mage_Catalog_Block_Product_List_Related the behavior you described is not the default one. If you look at the _prepareData() you will see that in order for the product to appear the following conditions must be met:

  • Product must be assigned to current website
  • Product must not be in cart
  • Product must be visible in catalog
  • Thanks. A lot of products I added to the related product list were actually from another store. But if I'm correct I can change this behaviour by overriding Mage_Catalog_Block_Product_List_Related right? – Ogier Schelvis Dec 26 '14 at 12:26
  • Actually it's not that simple. You will have to assign product to a website because of the price indexer, url rewrite indexer and a few other reasons. – Lord Skeletor Dec 26 '14 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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