Download the PHP package razzzila-dev/module-static-block-by-customer-group without Composer

On this page you can find all versions of the php package razzzila-dev/module-static-block-by-customer-group. 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 module-static-block-by-customer-group

Sign in Popup module for Magento 2

GitHub license Contributions welcome

FPC support Tested on >= Magento 2.3.2 No DB Migrations

Working with clients sometimes you want to add some privileges for some of them over other. Most simple example is to show the dedicated phone number of support for VIP customers. But it could be any content: images, text, even sliders, etc.

So here is the solution for this problem. Since mostly for displaying some content we use the static blocks, I just added new widget which have "Access Controll List" by Customer groups.

Works with FPC as well.

Installation

Package install

Manual installation

Download archive and unzip it. Then move all files from module-static-block-by-customer-group folder to the <magento_root>/app/code/Razzzila/StaticBlockACL folder.

Using Composer

Change working directory to <magento_root> and run:

Usage

Let's create 2 blocks: one with default support number inside and another one with a dedicated phone number for VIP customers.

For doing so, in the admin panel open Content -> Blocks and click "Add new block" button. Fill fields and click "Save & Duplicate". Enable block, change Identifier, Block title, and Content (replace with a dedicated number) and click "Save".

Now navigate to Block or Page where you want to put a dynamic block (based on the customer group). In the content editor click on "Insert Widget" and choose "Static Block ACL". The first block will be default one, so choose the block with default phone number and choose groups for whom you want to show it (all except VIP group). The second one will be for VIP customers only. Right after the widget from above create another one but here choose the block with dedicated for VIP customers phone number and choose VIP customer group. Save the page/block.

To apply changes navigate to the Cache Management and Refresh the FPC(Full Page Cache).

Support

This module is not my priority, so in time support not guaranteed. But feel free to open new issues and create pull-requests if needed.

License

MIT


All versions of module-static-block-by-customer-group with dependencies

PHP Build Version
Package Version
Requires magento/module-cms Version >100.0
magento/module-customer Version >100.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 razzzila-dev/module-static-block-by-customer-group contains the following files

Loading the files please wait ....