Skip to content

Magento2 extension to prevent add to cart action if customer is not logged in.

Notifications You must be signed in to change notification settings

inadeemkhan/magento2-prevent-add-to-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Magento2 Preventy Add To Cart

Magento2 extension to prevent add to cart action if customer is not logged in.

Features:

  1. To prevent add to cart if customer is not logged in, it will redierct customer to the login page.
  2. Looks like core functionality of Magento (at backend as well as frontend)
  3. Unencrypted code for easy customization

Installation Instruction

  • Copy the content of the repo to the app/code/Nadeem/PreventAddToCart/ folder
  • Run command: php bin/magento setup:upgrade
  • Run Command: php bin/magento setup:static-content:deploy
  • Now Flush Cache: php bin/magento cache:flush

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Screenshots & Support

If you encounter any problems or bugs, please open an issue on GitHub.

Login Page ScreenShot

Prerequisites

Use the following table to verify you have the correct prerequisites to install this Extension.

Prerequisite How to check For more information
Apache 2.2 or 2.4 Ubuntu: apache2 -v
CentOS: httpd -v
Apache
PHP 7.*.* php -v PHP Ubuntu
PHP CentOS
MySQL 5.6.x mysql -u [root user name] -p MySQL

Feedback and Support

[email protected]

Releases

No releases published

Packages

No packages published

Languages