Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. foreach($this->getItems() as $_item): ?>
  2.  
  3. // Start tried Displaying custom attribute
  4.  
  5. echo "Testattr::" . $_item->getTestattr();
  6.  
  7. // End tried Displaying custom attribute
  8.  
  9.  
  10.  
  11. <li class="item">
  12. <?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
  13. <?php if (!$_item->getRequiredOptions()): ?>
  14. <input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
  15. <?php endif; ?>
  16. <?php endif; ?>
  17. <div class="product">
  18. <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
  19. <div class="product-details">
  20. <p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></p>
  21. <?php echo $this->getPriceHtml($_item, true, '-related') ?>
  22. <?php if ($this->helper('wishlist')->isAllow()) : ?>
  23. <a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
  24. <?php endif; ?>
  25. </div>
  26. </div>
  27. </li>
  28. <?php endforeach ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement