php - Checkbox is missing in related products in magento -
i'm using magento c.e 1.7. product view page coming easytabs since i'm using easy tabs plugin. related products viewing easytabs.
problem is, of products not having checkbox in related products list. checked stock availability, required options etc in admin. no problem product settings. code below
<div class="box-collateral box-description"> <?php if($this->getitems()->getsize()): ?> <p class="test"><strong><?php echo $this->__('check items add cart or') ?> <a href="#" onclick="selectallrelated(this);return false;"><?php echo $this->__('select all') ?></a></strong></p> <ol class="tabsrelated"> <?php foreach($this->getitems() $_item): ?> <li <?php if($_item->iscomposite() || !$_item->issaleable()): ?> class="super-products"<?php endif; ?> id="tabsheight"> <div class="product-images"> <?php if(!$_item->iscomposite() && $_item->issaleable()): ?> <span class="checkbox-container"> <?php if (!$_item->getrequiredoptions()): ?> <input type="checkbox" class="related-checkbox left" id="related-checkbox<?php echo $_item->getid() ?>" name="related_products[]" value="<?php echo $_item->getid() ?>" /> <?php endif; ?> </span> <?php else: ?> <span class="checkbox-container"> </span> <?php endif; ?> <a href="<?php echo $_item->getproducturl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(150) ?>" alt="<?php echo $this->htmlescape($_item->getname()) ?>" width="150" height="150" /></a> </div> <div class="product-details"> <a href="<?php echo $_item->getproducturl() ?>"><?php echo $this->htmlescape($_item->getname()) ?></a> <div style="clear:both;"> <div class="related-price"> <?php echo $this->getpricehtml($_item, true) ?> </div> <div class="related-shipping" style="line-height:25.5px"> + free shipping </div> </div> <?php if ($this->helper('wishlist')->isallow()) : ?> <div> <a href="<?php echo $this->getaddtowishlisturl($_item) ?>" class="link-cart"><?php echo $this->__('add wishlist') ?></a> </div> <?php endif; ?> </div> </li> <?php endforeach ?> </ol>
how view related products checkbox? can here?
do products have custom options? if so, dont think checkbox shown must in case go product , select custom options , not able directly select in related products area.
Comments
Post a Comment