This extension allows to set if a product is saleable and can show its price by scope and customer group.
Magento 2 Open Source or Commerce edition is required.
Run the following composer command:
composer require opengento/module-saleable
Run the following magento command:
If you are in production mode, do not forget to recompile and redeploy the static resources.
- 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.
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
- can_show_price (yes/no)
- is_purchasable (yes/no)
Do not create the following attributes as they are already used internally by Magento for field alias and flag:
Raise a new request to the issue tracker.
This project is licensed under the MIT License - see the LICENSE details.
That's all folks!