opengento/module-saleable

This extension allows to set if a product is saleable and can show its price by scope and customer group.

1.0.2 2020-06-10 12:30 UTC

This package is auto-updated.

Last update: 2020-08-10 12:49:57 UTC


README

Latest Stable Version License: MIT Packagist Packagist

This extension allows to set if a product is saleable and can show its price by scope and customer group.

Setup

Magento 2 Open Source or Commerce edition is required.

Composer installation

Run the following composer command:

composer require opengento/module-saleable

Setup the module

Run the following magento command:

bin/magento setup:upgrade

If you are in production mode, do not forget to recompile and redeploy the static resources.

Features

Saleable

  • Define if the price can be displayed on the storefront, depending of the customer group and by scope.
  • Define if the sales are enabled on the website and by customer groups.

Settings

The configuration for this module is available in 'Stores > Configuration > Catalog > Catalog > Price'.

  • Show Prices for Customer Groups

The configuration for this module is available in 'Stores > Configuration > Sales > Checkout > Shopping Cart'.

  • Enable Sales for Customer Groups

Warning

If you need to determine the rules by products, create new product attributes:

  • can_show_price (yes/no) The module has a plugin to enforce the type result to be a boolean.
  • salable (yes/no) The module has a plugin to enforce the type result to be a boolean.

Magento will automatically handle these attributes to check if a product is saleable or its price can be displayed.

Support

Raise a new request to the issue tracker.

Authors

  • Opengento Community - Lead - Twitter Follow
  • Thomas Klein - Maintainer - GitHub followers
  • Contributors - Contributor - GitHub contributors

License

This project is licensed under the MIT License - see the LICENSE details.

That's all folks!