#6251

jessilf
Participant

    No, the sample link in the conf does not resolve the problem. What we need is to have individual products in a group be hyperlinked to their respective picture (placed in the sample). In trying to resolve the problem I found the information below in a forum. However, this points to their product page and not the picture sample (file uploaded in the sample). I need to find the location/code to insert in product.phtml that will allow me to point to the sample uploaded in the conf instead of the product page.

    **From the Forum:
    Can magento have individual products in a group be hyperlinked to their individual web page?
    Options
    ‎03-19-2015 02:10 PM

    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) : ?>
    getProductUrl()?>”><?php echo $_item->getName();?>
    <?php else : ?>
    <?php echo $_item->getName();?>
    <?php endif;?>
    </td>