getLayout()->getBlock('product.info'); if ($block) { $url = Mage::helper('wishlist')->getAddToCartUrl($this->getWishlistItem()); $block->setCustomAddToCartUrl($url); } return parent::_prepareLayout(); } }