B-219 Sec-55 Noida, India
+918010221733

Get associated products

In /app/design/frontend/default/site/template/catalog/product/view/type/

<?php $_helper = $this->helper(‘catalog/output’); ?>
<?php $_associatedProducts = $this->getAllowProducts() ?>
<?php //var_dump($_associatedProducts); ?>
<br />
<br />
<?php if (count($_associatedProducts)): ?>
    <?php foreach ($_associatedProducts as $_item): ?>
        <a href=”<?php echo $_item->getProductUrl() ?>”><?php echo $_helper->productAttribute($_item, $_item->getName(), ‘name’) ?> |
<?php echo $_item->getName() ?> |
<?php echo $_item->getPrice() ?></a>
        <br />
        <br />
    <?php endforeach; ?>
<?php endif; ?>

(Visited 38 times, 1 visits today)

Leave a reply