Skip to content

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

Merged
merged 6 commits into from
Dec 19, 2017
Merged

Add error message if not logged in for adding products to wishlist #12681

merged 6 commits into from
Dec 19, 2017

Conversation

PieterCappelle
Copy link
Contributor

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

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@@ -30,26 +30,34 @@ class Plugin
protected $config;

/**
* @var \Magento\Framework\App\Response\RedirectInterface
* @var \Magento\Framework\Message\ManagerInterface $messageManager
Copy link
Contributor

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.

Copy link
Contributor Author

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;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@magento-team magento-team merged commit d511c3b into magento:2.3-develop Dec 19, 2017
magento-team pushed a commit that referenced this pull request Dec 19, 2017
@PieterCappelle PieterCappelle deleted the wishlist_add_message branch December 21, 2017 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants