Magento – Product View Link ” E-mail to a friend” or “e-Mail to a friend” Edit or Remove

Picture

Who in the article view “E-mail to a friend” annoying or just want to remove this, can do this quickly and easily.

Unfortunately, it does not help, the output module in the backend (System > Configuration > Expanded and there Mage_Sendfriend) to disable, as the link remains are still there.

It must view.phtml file in the folder / app / design / frontend /[base or default]/IhrTemplate / template / open catalog / product.

There is approximately. in line 55 The following entry

<?php if ($this->canEmailToFriend()): ?>
<p class=”email-friend”><a href=”<?php echo $this->helper(‘catalog/product’)->getEmailToFriendUrl($_product) ?>”><?php echo $this->__(‘Email to a Friend’) ?></a></p>
<?php endif; ?>

These now exclude or delete. So it would look like this

<!–<?php if ($this->canEmailToFriend()): ?>
<p class=”email-friend”><a href=”<?php echo $this->helper(‘catalog/product’)->getEmailToFriendUrl($_product) ?>”><?php echo $this->__(‘Email to a Friend’) ?></a></p>
<?php endif; ?>–>

Then save. At the latest after a cache reload the link should now be gone.

If the link are at a different location, The area could also be moved.

Used in 1.4.1.1

Addendum dated 26.10.2011

Should also review the / Review functionality is removed from the article, in the same view.phtml about. in line 53

<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>

exclude or remove.

Used in Magento 1.5.1.0

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

3 comments on “Magento – Product View Link ” E-mail to a friend” or “e-Mail to a friend” Edit or Remove”

  1. Instead of the templates “rumzupfriemeln” it is enough simply to the administration on configuration > (Catalog) > E-mail to a friend option “Enabled” on “No” to set. 😉
    The query “canEmailToFriend()): ?>” after all, is not without reason template.

    1. When would it work again and not remain a template snippets left, This is of course the easy way. Unfortunately, he does not always fully.

  2. Thank you very much

    The fact that the configuration works for me also not (Version 1.5.1.0). But has worked around the friemeln. Is probably due, that this only works with basic layout.

Leave a Reply

Your email address will not be published. Required fields are marked *