Download the PHP package kreativsoehne/magento-2-price-after-login without Composer

On this page you can find all versions of the php package kreativsoehne/magento-2-price-after-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-2-price-after-login

magento-2-price-after-login

A Magento 2 extension which lets you determine which user groups are able to see the prices at all. Not logged in users will not see prices, too.

installation

1. $ composer require kreativsoehne/magento-2-price-after-login
2. $ ./bin/magento module:enable kreativsoehne_PriceAfterLogin
3. $ ./bin/magento setup:upgrade
4. $ ./bin/magento setup:di:compile
5. Profit.

usage

To determine allowed user groups, navigate to the module's settings in Magento admin:

Shops -> Settings -> Configuration -> Catalog -> Catalog -> Price

Activate "Display prices only for specific customer groups" to enable the extension's functionality. After activating, choose all the user groups which are allowed to see prices. Keep on pressing the CMD (Mac) or the CTRL (Windows or Linux) key on your keyboard to choose multiple user groups.

how it works

It's a simple interceptor plugin which expands the Magento\Framework\Pricing\Render::Render() method into an after method. It will surpress any price rendering when the user is not member of one of the specified user groups.

Notice:

This Extension is very simple. It does not perform any additional logic than just surpressing rendering prices when not allowed. If you have implemented your own price rendering outside of the system's price renderer, then this extension will not work properly or won't work at all.


All versions of magento-2-price-after-login with dependencies

PHP Build Version
Package Version
Requires magento/framework Version ^101.0|^102.0
php Version >=7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kreativsoehne/magento-2-price-after-login contains the following files

Loading the files please wait ....