mageplaza / module-extra-fee-graphql

mageplaza/module-extra-fee-graphql

Magento 2 Extra Fee GraphQl Extension

magento2-module Compatibility: Not compatible Code Quality: Fail Tests: N/A Security: Pass proprietary

Magento 2 Extra Fee GraphQL

Magento 2 Extra Fee GraphQL is a part of the Extra Fee extension by Mageplaza that supports stores with GraphQL features and PWA compatibility. With this upgrade, it is possible for stores to have a more hassle-free experience when updating their system in the future.

Mageplaza Extra Fee for Magento 2 supports stores in creating additional charges for any extra services. Those services range from gift wrapping, premium delivery, to customization requests and more.

Unlimited extra fees can be created and activated in specific conditions set in the backend. Based on conditions such as product attribute combination, product subselection, condition combination, payment methods, etc., the fees will be activated accordingly. You can also configure how the extra fee is calculated in 3 options: a fixed amount of each item, a fixed amount of the whole cart, or a percentage of the cart total. In the case of multiple rules, you can set priorities, with the smaller number the rule has, the more priority it gains.

Besides that, compulsory fees such as taxes or payment method charges can be applied automatically, while additional services such as gift wrapping or quick delivery can be set as manually applied. This feature helps stores comply with regulations and enhances customer experience when their interactions are put at the right place.

Stores are able to set visibility for each extra fee so that only specific customer groups can see it in specific store views. What’s more, the fees can be viewed on various positions including Shopping Cart/ Payment Method, Email/PDF, or other billing documents.

Thanks to this module, stores can boost their sales, and customers can also fulfill their needs. While the default Magento 2 only allows specific fees such as Free Shipping, Table Rate, or Flat Rate, this module will definitely bring more flexibility as well as a better experience for both merchants and customers.

1. How to install

Run the following command in Magento 2 root folder:

composer require mageplaza/module-extra-fee-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Note:
Mageplaza Extra Fee GraphQL requires installing Mageplaza Extra Fee in your Magento installation.

2. How to use

To perform GraphQL queries in Magento, please do the following requirements:

  • Use Magento 2.3.x or higher. Set your site to developer mode.
  • Set GraphQL endpoint as http://<magento2-server>/graphql in url box, click Set endpoint.
    (e.g. http://dev.site.com/graphql)
  • To view the queries that the Mageplaza Extra Fee GraphQL extension supports, you can look in Docs > Query in the right corner

3. Devdocs

4. Contribute to this module

Feel free to Fork and contribute to this module and create a pull request so we will merge your changes main branch.

5. Get Support

  • Feel free to contact us if you have any further questions.
  • Like this project, Give us a Star star
Versions
Version Stability QA Status Compatibility Released
1.0.0 stable Fail Not compatible Details 2022-02-22 06:30:33

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Fail di error Fail di error
2.4.8 Fail di error Fail di error
2.4.9 Fail di error Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 6 6 warnings (ruleset: Magento2) — 5 auto-fixable with phpcbf
PHPMD Warning 4 4 rule violations (UnusedFormalParameter:4)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 32 32
2.4.8 32 38
2.4.9 38 38

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from mageplaza

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.