magenerds / germanlaw

magenerds/germanlaw

This module provides general settings for german stores

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0

Are you the maintainer of magenerds?

Packagento pulls magenerds's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

Magenerds_GermanLaw

This extension provides basic configurations for your Magento store in order to be ready for the german market.
It includes many system configuration settings, tax configuration as well as cms pages for legal information.
It also shows legal notices for shipping costs after every price.

Extension installation

The easiest way to install the Magenerds module is via composer

# add to composer require
composer require magenerds/germanlaw

# run magento setup to activate the module
bin/magento set:up

Extension activation

At any time you can enable and disable this extension in the system configuration.
You can do this by opening the backend menu Stores > Configuration.
There you will find the entry Magenerds > GermanLaw.
After clicking on it you see a dropdown box where you can enable/disable the module. Save the configuration and delete
the cache.

[image: GermanLaw-Activation]

Extension configuration

You can configure the shipping notice either to be displayed after every price directly or in the footer whereas there
ist an asterisk (*) behind every price referencing to the footer.
Go to Stores > Configuration and Magenerds > GermanLaw and then to Price display. There you can choose if you use
the asterisk or not:

[image: GermanLaw-Configuration]

You can also define the tax and shipping text being dispayed. Therefore you can use %s in order to define the tax amount
in the text.
For defining the link to the shipping page you can use [ and ] before and after the word you want to use as a link.
Example: Inkl. %s MwSt., zzgl. [Versand] will lead to Inkl. 19% MwSt., zzgl. Versand whereas Versand is the link to
the shipping page.
The last configuration setting is the selected cms page which is the shipping page you want to link to.

Installed CMS Pages

This extension installs 5 cms pages during installation:

  • AGB
  • Widerrufsbelehrung
  • Impressum
  • Versandkosten
  • Datenschutzbestimmung

The cms pages have dummy content so you should fill them if you use them. The german law says you have to use them :-)

Tax configuration

This extension installs the two german tax rates:

  • 7%
  • 19%

You can select them if you edit a product in the backend under Product details:

[image: GermanLaw-Tax]

System configuration

This extensions configures the system so that the store is ready for the german market. In detail the settings are as
follows:

  • Default country: DE
  • Locale code: de_DE
  • State required: CA,EE,FI,FR,LV,LT,RO,ES,US
  • Timezone: Europe/Berlin
  • Weight unit: kgs
  • Week’s first day: Monday
  • Currency: EUR
  • Sendfriend: Disabled as not allowed in Germany
  • Newsletter subscription confirmation: Enabled
  • Create customer account confirmation: Enabled
  • Prefix options: Herr;Frau;Firma
  • Show middlename: Disabled
  • Show price including tax: Enabled
  • Show discount including tax: Enabled
  • Default country: DE
  • Show agreements: Enabled
  • Origin country: DE
  • Origin postcode: empty

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.3.1 stable Fail Magento 2.4.7-2.4.9 Details 2023-06-29 13:39:24
1.3.0 stable Not tested Not yet tested Details 2022-05-24 15:00:10
1.2.2 stable Not tested Not yet tested Details 2020-10-20 20:17:08
1.2.1.1 stable Not tested Not yet tested Details 2019-05-07 15:09:49
1.2.1 stable Not tested Not yet tested Details 2018-12-12 08:15:45
1.2.0 stable Not tested Not yet tested Details 2018-09-03 12:29:16
1.1.1 stable Not tested Not yet tested Details 2018-06-07 11:40:32
1.1.0 stable Not tested Not yet tested Details 2018-02-07 11:48:16
1.0.13 stable Not tested Not yet tested Details 2017-11-19 14:01:14
1.0.12 stable Not tested Not yet tested Details 2017-09-30 07:41:28
1.0.11 stable Not tested Not yet tested Details 2017-08-11 13:19:34
1.0.10 stable Not tested Not yet tested Details 2017-05-24 12:51:05
1.0.9 stable Not tested Not yet tested Details 2017-03-18 18:55:41
1.0.8 stable Not tested Not yet tested Details 2017-03-16 20:04:22
1.0.7 stable Not tested Not yet tested Details 2017-02-17 18:59:11
1.0.6 stable Not tested Not yet tested Details 2017-02-14 13:17:41
1.0.5 stable Not tested Not yet tested Details 2017-02-14 12:10:12
1.0.4 stable Not tested Not yet tested Details 2017-01-31 13:50:37
1.0.3 stable Not tested Not yet tested Details 2017-01-15 10:48:35
1.0.2 stable Not tested Not yet tested Details 2016-12-30 17:36:44
1.0.0 stable Not tested Not yet tested Details 2016-11-02 18:37:07

Requires 2

Package Constraint
magento/framework *
magenerds/dashboard *

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 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

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 Fail 74 4 errors, 70 warnings (ruleset: Magento2) — 37 auto-fixable with phpcbf
PHPMD Warning 4 4 rule violations (IfStatementAssignment:1, UnusedFormalParameter:1, CyclomaticComplexity:1, NPathComplexity:1)
Cpd Pass 0
Composer validate Info 2 valid; 2 advisory notes (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.

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

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
OSL-3.0

More from magenerds

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.