Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1.                 <?php
  2.                     $_categoryLinks = [
  3.                         ['id' => 239],
  4.                         ['id' => 251]
  5.                     ];
  6.                 ?>
  7.                 <?php foreach ($_categoryLinks as $_link): ?>
  8.  
  9.                     <?php $_category = Mage::getModel('catalog/category')->load($_link['id']); ?>
  10.                     <li>
  11.                         <a href="<?php echo $_category->getUrl('skincare'); ?>" class="footer-sitemap__title">
  12.                             <?php echo $_category->getName(); ?>
  13.                         </a>
  14.                         <ul class="footer-sitemap__column hide-on-mobile">
  15.                             <?php foreach ($_category->getChildrenCategories() as $subCategory):?>
  16.  
  17.                                 <?php foreach ($this->getProductCollection($subCategory) as $product): ?>
  18.                                     <li>
  19.                                         <a href="<?php echo $product->getProductUrl(); ?>">
  20.                                             <?php echo $product->getName(); ?>
  21.                                         </a>
  22.                                     </li>
  23.                                 <?php endforeach; ?>
  24.  
  25.                             <?php endforeach ?>
  26.                         </ul>
  27.                     </li>
  28.  
  29.                 <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement