cancel
Showing results for 
Search instead for 
Did you mean: 

Can magento have individual products in a group be hyperlinked to their individual web page?

Can magento have individual products in a group be hyperlinked to their individual web page?

If a customer was looking at a group product page can is it possible to make the individual products in that page linkable to their actual webpage?

1 REPLY

Re: Can magento have individual products in a group be hyperlinked to their individual web page?

Yes it's possible.  

The template used for rendering the simple products in the grouped product page is: 

`app/design/frontend/{package}/{theme}/template/catalog/product/view/type/grouped.phtml`

 

Inside it you will find this code:

 

<td><?php echo $this->escapeHtml($_item->getName()) ?></td> 

 

 

You can change the code to:

 

 

 <td>
   <?php if ($_item->getVIsibility() != Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE) : ?>
       <a href="<?php echo $_item->getProductUrl()?>"><?php echo $_item->getName();?></a>
   <?php else  : ?>
        <?php echo $_item->getName();?>
   <?php endif;?>
</td>

 



I write code