Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Contribution to grouped product
Total Posts:  73
Joined:  2008-03-27


just wanted to share a technique that might be useful when dealing with grouped products.

The idea of grouped products is to have one “container product” that has various combinations. For example, a wine can have a specific vintage or a bottle size. One might say that this is also a configurable product. Alas, this is not the case for wine, as the price factor is often very much linked to the quality of the vintage.

Now, to me, the correct way to deal with it on the GUI side is just to have the product shown, and not the simple products. However, what I’d like is that, when I display the grouped product, that I also have a link to the simple products.

How did I solve this?
- create the simple products, have their visibility attribute set to catalogue
- create the grouped product, visibity set to catalogue, search
- in the template file of the grouped product (app\design\frontend\default\default\template\catalog\product\view\type\grouped.phtml —pffew!), locate the block that outputs the product descriptions
- change the echo $_item->getName() part to
<?php echo "<a href=\""; ?>
<?php echo $_item->getProductUrl(); ?>
<?php echo "\">"; ?>
<?php echo $_item->getName() ?>
<?php echo "</a>" ?>

Basically, this code adds a hyperlink to the Url of the product.

Now go to your page and try it. You’ll have a hyperlink to your simple product.
No clutter in the search and a straightforward interface.



Magento Community Magento Community
Magento Community
Magento Community
Jr. Member
Total Posts:  18
Joined:  2009-02-23

Here is another idea based on Charles’ idea.

Since the Magento Team has not yet allowed for configurable products to be allowed in grouped products, here is a solution to enable linking a simple product to its configurable parent products page.

This is good if you are selling sizes or colors and you want them to be able to select the size they want before they purchase. The only downside is that they will need to click through to the configurable parent product page before they purchase that item.

Here are the steps (I also created a video and posted it on my website since I couldn’t seem to upload it with this post []

1. Create a new attribute that will be applied to the Simple Products that are grouped in the grouped product
a. Go to Catalog > Manage Attributes
a. Click on the button “Add New Attribute” in the upper right-hand corner.
b. Create attribute called something like Parent Product URL* with an Attribute Code called parent_url

2. Go to Manage Attribute Sets
a. Add that attribute to the Default attribute set (or any attribute set you are using for these products)

3. Go to Manage Products and click on the simple product(s) that is/are a member of a grouped product (i.e. T-Shirt Small)
a. In the attribute settings area, find “Parent Product URL” and paste the parent product’s url in the text field.

4. In your source code, go to app/design/frontend/default/(yourtheme)/template/catalog/product/view/type/grouped.phtml
a. Find

<?php echo $this->htmlEscape($_item->getName()) ?>
and replace it with the following code:

<?php echo "<a href=\""; ?>
<?php echo 
$_item->getparent_url(); ?>
<?php echo "
echo $_item->getName() ?>
echo "</a>" ?>

4. Put your file and test

*Note: If you do this, every product that appears in the grouped product will need a Parent Product URL

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top