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 ? Oct 8, 2018 at 6:27
  • No, there is not any required option. are you talking about required field ? Oct 8, 2018 at 6:28
  • ok so related product are also simple products . Correct ? Oct 8, 2018 at 6:29
  • Yes, Related product is also simple product and in which product i have added this is also simple product. Oct 8, 2018 at 6:30
  • checkboxes are showing in my case with above scenario. can you please check which condition is making false in above code ? Oct 8, 2018 at 6:53


Your Answer

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