kowal/module-disableaddtocart

Disable Add To Cart

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:magento2-module

1.0.0 2021-07-11 13:26 UTC

This package is auto-updated.

Last update: 2024-12-11 19:11:28 UTC


README

``kowal/module-disableaddtocart``

Main Functionalities

Disable Add To Cart

Installation

* = in production please use the --keep-generated option

Type 1: Zip file

  • Unzip the zip file in app/code/Kowal
  • Enable the module by running php bin/magento module:enable Kowal_DisableAddToCart
  • Apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Type 2: Composer

  • Make the module available in a composer repository for example:
    • private repository repo.magento.com
    • public repository packagist.org
    • public github repository as vcs
  • Add the composer repository to the configuration by running composer config repositories.repo.magento.com composer https://repo.magento.com/
  • Install the module composer by running composer require kowal/module-disableaddtocart
  • enable the module by running php bin/magento module:enable Kowal_DisableAddToCart
  • apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Configuration

  • enable (disable_add_to_cart/settings/enable)

Specifications

  • Plugin
    • afterIsSaleable - Magento\Catalog\Model\Product > Kowal\DisableAddToCart\Plugin\Frontend\Magento\Catalog\Model\Product

Attributes