Download the PHP package confirm-actions/magento2-confirm-actions without Composer

On this page you can find all versions of the php package confirm-actions/magento2-confirm-actions. 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 magento2-confirm-actions

Magento 2 / Adobe Commerce mass-delete confirmation

Latest Stable Version Total Downloads

Prevent accidental deletion of products and other records in Magento Admin. This lightweight Magento 2 and Adobe Commerce module adds a second confirmation to mass-delete actions and requires typed confirmation for large deletions.

Magento's normal confirmation dialog remains the first step. After the administrator clicks OK, this module displays a separate final warning before Magento can send the delete request. It protects standard and tree-style mass-action menus across the Admin, including the product grid.

What it protects against

Confirmation behaviour

Selection First step Additional module step
1–20 explicitly selected records Magento's normal confirmation Final irreversible-deletion warning
More than 20 explicitly selected records Magento's normal confirmation Type the exact phrase, such as DELETE 25
Select All Magento's normal confirmation Type DELETE <count> for all matching records

The Delete permanently button remains disabled until the typed phrase matches exactly. The default threshold is 20 records and can be configured per action.

Requirements

Installation

Install the package through Composer, then enable it:

In production mode, redeploy Admin static content after installation:

Updating

Redeploy Admin static content after updating a production-mode installation.

What administrators will see

The first dialog still looks like Magento's normal Delete items dialog. That is intentional: the module preserves confirmations supplied by Magento or another extension. Click OK on that first dialog to reach the additional module confirmation.

For a small deletion, the second dialog is titled Final deletion confirmation. For a large or Select All deletion, it is titled Type to confirm deletion and requires a phrase such as DELETE 25.

Troubleshooting

If the additional confirmation does not appear after accepting Magento's first dialog:

  1. Confirm the module is enabled:

  2. Clear Magento caches and redeploy static content:

  3. Refresh the Admin page without using the browser cache.

  4. Check that the action is recognized as a delete action. Custom destructive actions with another name can opt in using confirmDelete as shown below.

Custom mass actions

The module protects actions where delete appears as a word in the action's type, label, or url. Camel-case identifiers such as massDelete are supported. The default Magento confirmation is used whenever one is already present.

The typed-confirmation threshold defaults to 20 and can be overridden for a custom action in its data/config argument:

For a custom action whose configuration does not contain the word delete, add an explicit flag to its mass-action configuration. Custom settings belong in the action's data/config argument so Magento's UI component XML remains valid:

The confirmation is a browser-side safety guard. Magento's normal ACL and form key protections remain responsible for authorising the delete request.

Scope and limitations

Support

Report bugs or request enhancements through GitHub Issues. When reporting an Admin UI issue, include the Magento version, browser, action being protected, and whether production mode is enabled.

Development

Run the dependency-free JavaScript tests with Node.js 18 or later:

License

Released under the MIT License.


All versions of magento2-confirm-actions with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.1
magento/framework Version ^103.0
magento/module-ui Version ^101.2
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 confirm-actions/magento2-confirm-actions contains the following files

Loading the files please wait ...