vendic / hyva-checkout-hide-business-fields
vendic/hyva-checkout-hide-business-fields
Hyvä checkout module to hide business fields for consumers
Vendic_HyvaCheckoutHideBusinessFields
This module adds a customer type field to the checkout and hides the business fields when the customer type is set to "consumer". Business fields can be configered via di.xml:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Vendic\HyvaCheckoutHideBusinessFields\Model\Form\HideBusinessFieldsForConsumers">
<arguments>
<argument name="businessFields" xsi:type="array">
<item name="company" xsi:type="string">company</item>
<item name="vat_id" xsi:type="string">vat_id</item>
</argument>
</arguments>
</type>
</config>
Installation
composer require vendic/hyva-checkout-hide-business-fields
Features
Allows additional customer type options like Organisation to be added to the existing Consumer and Business options.
To add custom customer type options, you can modify or add the following configuration to your module’s di.xml file:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework/ObjectManager/etc/config.xsd">
<type name="Vendic\HyvaCheckoutHideBusinessFields\Model\Form\AddCustomerTypeRadioButtons">
<arguments>
<!-- Pass custom options to the class -->
<argument name="customCustomerTypeOptions" xsi:type="array">
<item name="organization" xsi:type="array">
<item name="label" xsi:type="string">Organization</item>
<item name="value" xsi:type="string">organization</item>
</item>
<!-- Add more custom customer types here if needed -->
</argument>
</arguments>
</type>
</config>
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.1.3 | stable | Fail | Not yet tested Details | 2026-06-02 12:13:42 |
| 1.1.2 | stable | Not tested | Not yet tested Details | 2025-10-03 13:10:45 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2025-09-19 10:37:02 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2025-05-13 07:44:17 |
| 1.0.5 | stable | Not tested | Not yet tested Details | 2024-11-12 10:36:25 |
| 1.0.4 | stable | Not tested | Not yet tested Details | 2024-10-16 15:23:02 |
| 1.0.3 | stable | Not tested | Not yet tested Details | 2024-06-17 13:46:38 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2024-05-16 12:33:17 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2024-02-29 09:25:23 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2023-09-19 08:38:32 |
Requires 2
| Package | Constraint |
|---|---|
| hyva-themes/magento2-hyva-checkout | ^1.3.0 |
| php | >=8.1 <8.5 |
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.
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | ||
| 2.4.8 | not tested | not tested | ||
| 2.4.9 | not tested | not tested |
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.
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.
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
| 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
| 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.
No license declared
This package's composer.json doesn't declare a license, homepage, or authors. Check the source repository for terms of use.
More from vendic
View vendorAdd three offline payment methods (Cash, Prepaid and one customizable payment method) to Magento 2. Enable/disable per store view
Magento 2 module that provides you with an extra order grid in the admin backend. You can give the grid a custom name and configure what order statuses to show.
Add a create account checkbox to the Hyvaä checkout for Magento 2
Adds a newsletter subscribe checkbox on the Hyvä checkout
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.