Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by Jaro ( 15 years ago )
<?php foreach($productCollection as $product): ?> 
        <?php $_lineTop .= '<li> 
                                    <a >getProductUrl() . '">
                                        <span class="child-image"><img >getThumbnail()):
                                        $_lineTop .= Mage::getBaseUrl('media') . 'catalog/product/' . $_image;
                                    else:
                                        $_lineTop .= $this->getSkinUrl('images/demo-submenu-image.png');
                                    endif;
                                    
                                    $_lineTop .= '" alt="' . $product->getName() . '" /></span>
                                        <span class="child-name">' . $product->getName() . '</span>
                                    </a>
                                </li>'; ?>
                                <?php $_countTop++; ?>
                        <?php endforeach;?>

 

Revise this Paste

Children: 35343
Your Name: Code Language: