I have added related product to one simple product it's all are display in product detail page but it's not display with checkbox for select so that i am not able to add that product to cart. According to me following code has issue to display checkbox.

   <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
        <?php if (!$_item->getRequiredOptions()): ?>
           <input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
        <?php endif; ?>
   <?php endif; ?>

This code is already in this path:

/app/design/frontend/base/default/template/catalog/product/list/related.phtml line no 37

if you have any idea about this please share it with me.


  • do your related product has so some required options ? – Shashank Kumrawat Oct 8 '18 at 6:27
  • No, there is not any required option. are you talking about required field ? – Sarfaraj Sipai Oct 8 '18 at 6:28
  • ok so related product are also simple products . Correct ? – Shashank Kumrawat Oct 8 '18 at 6:29
  • Yes, Related product is also simple product and in which product i have added this is also simple product. – Sarfaraj Sipai Oct 8 '18 at 6:30
  • checkboxes are showing in my case with above scenario. can you please check which condition is making false in above code ? – Shashank Kumrawat Oct 8 '18 at 6:53

Your Answer

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

Browse other questions tagged or ask your own question.