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?

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

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 1

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