Currently, when I open a product page, I am presented with three buttons

  • Add to Wishlist
  • Add to Compare
  • And Share

If I click share, it redirects me to a login page. Why a person needs to be logged in in order to share something, I have no idea. Is there a reason for this? Can I fix this?

The only fix I have come up with is to use an extension call AddTo.

Here is a picture enter image description here

If I click "Share", I am redirected to login.


2 Answers 2


If you are talking about the send to a friend feature, this can be activated for guest or only registered users.

In the controller Mage_Sendfriend_ProductController::preDispatch it checks to see if the feature is activated only for registered users via $helper->isAllowForGuest()

This helper function simply looks for the config value sendfriend/email/allow_guest this can be changed via the admin section Email to a Friend.

  • Seriously, the share button is only used for Email.. damnit. Your solution did in fact work though. Thank you
    – dockeryZ
    Commented Nov 25, 2014 at 16:58

Simply - Overwrite - /vendor/magento/module-send-friend/Controller

/* if (!$helper->isAllowForGuest() && !$session->authenticate()) { ---- Before*/

if ($helper->isAllowForGuest() && $session->authenticate()) { /-------- After/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.