Skip to content

Latest commit

 

History

History
95 lines (59 loc) · 2.65 KB

README.md

File metadata and controls

95 lines (59 loc) · 2.65 KB

Magento2 Product Available

Total Downloads Latest Stable Version

Extension allows the store owner to hide the product price and add to cart button from guests or certain customer groups. This is very necessary for B2B websites where the customer can see the price of the product and add it to the shopping cart after logging on to the site.

Compatibility

Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x

Install

Install via Composer (recommend)

  1. Go to Magento2 root folder

  2. Enter following commands to install module:

    For Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x

    composer require faonni/module-product-available:2.0.*

    For Magento CE(EE) 2.4.x

    composer require faonni/module-product-available:2.4.*

    Wait while dependencies are updated.

Manual Installation

  1. Create a folder {Magento root}/app/code/Faonni/ProductAvailable

  2. Download the corresponding latest version

  3. Copy the unzip content to the folder ({Magento root}/app/code/Faonni/ProductAvailable)

Completion of installation

  1. Go to Magento2 root folder

  2. Enter following commands:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy  (optional)

Configuration

In the Magento Admin Panel go to Stores > Configuration > Catalog > Product Available.

Magento2 Product Available

Catalog

Hidden only add to cart button

Magento2 Product Available

Uninstall

This works only with modules defined as Composer packages.

Remove database data

  1. Go to Magento2 root folder

  2. Enter following commands to remove database data:

    php bin/magento module:uninstall -r Faonni_ProductAvailable
    

Remove Extension

  1. Go to Magento2 root folder

  2. Enter following commands to remove:

    composer remove faonni/module-product-available

Completion of uninstall

  1. Go to Magento2 root folder

  2. Enter following commands:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy  (optional)