*/ class Mage_Wishlist_Block_Share_Email_Items extends Mage_Wishlist_Block_Abstract { /** * Initialize template * */ public function __construct() { parent::__construct(); $this->setTemplate('wishlist/email/items.phtml'); } /** * Retrieve Product View URL * * @param Mage_Catalog_Model_Product $product * @param array $additional * @return string */ public function getProductUrl($product, $additional = array()) { $additional['_store_to_url'] = true; return parent::getProductUrl($product, $additional); } /** * Retrieve URL for add product to shopping cart * * @param Mage_Catalog_Model_Product $product * @param array $additional * @return string */ public function getAddToCartUrl($product, $additional = array()) { $additional['nocookie'] = 1; $additional['_store_to_url'] = true; return parent::getAddToCartUrl($product, $additional); } /** * Check whether whishlist item has description * * @param Mage_Wishlist_Model_Item $item * @return bool */ public function hasDescription($item) { $hasDescription = parent::hasDescription($item); if ($hasDescription) { return ($item->getDescription() !== Mage::helper('wishlist')->defaultCommentString()); } return $hasDescription; } }