inadeemkhan / magento2-prevent-add-to-cart

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

khannadeem243@gmail.com

About

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


Languages

Language:PHP 100.0%