Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $_categoryLinks = [
- ['id' => 239],
- ['id' => 251]
- ];
- ?>
- <?php foreach ($_categoryLinks as $_link): ?>
- <?php $_category = Mage::getModel('catalog/category')->load($_link['id']); ?>
- <li>
- <a href="<?php echo $_category->getUrl('skincare'); ?>" class="footer-sitemap__title">
- <?php echo $_category->getName(); ?>
- </a>
- <ul class="footer-sitemap__column hide-on-mobile">
- <?php foreach ($_category->getChildrenCategories() as $subCategory):?>
- <?php foreach ($this->getProductCollection($subCategory) as $product): ?>
- <li>
- <a href="<?php echo $product->getProductUrl(); ?>">
- <?php echo $product->getName(); ?>
- </a>
- </li>
- <?php endforeach; ?>
- <?php endforeach ?>
- </ul>
- </li>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement