-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Add error message if not logged in for adding products to wishlist #12681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error message if not logged in for adding products to wishlist #12681
Conversation
…nto2 into wishlist_add_message
…nto2 into wishlist_add_message
…nto2 into wishlist_add_message
@@ -30,26 +30,34 @@ class Plugin | |||
protected $config; | |||
|
|||
/** | |||
* @var \Magento\Framework\App\Response\RedirectInterface | |||
* @var \Magento\Framework\Message\ManagerInterface $messageManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this change was done unintentionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
/** | ||
* @var \Magento\Framework\Message\ManagerInterface $messageManager | ||
*/ | ||
protected $messageManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use only private
properties for core code as usage of inheritance is not encouraged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Description
When you add a product to the wishlist and you're not logged in you're redirected to the login page without any warning. In this PR I've added short warning why you're redirect to the login page.
Manual testing scenarios
Add product to wishlist without logging in.
Contribution checklist