📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Stable v1.1.2

Hyva Checkout Hide Business Fields

vendic/hyva-checkout-hide-business-fields

Adds a customer type field to the checkout and hides business fields when "consumer" is selected. Configurable via di.xml, it also allows adding custom customer type options.

37,078
Downloads
Below average
13
GitHub Stars
Below average
4mo ago
Last Release
2
Open Issues
Build Issues
0/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.1.2 on Magento 2.4.8-p3
Dec 28, 2025
v1.1.2 on Magento 2.4.8-p3
Dec 27, 2025

Looking for Contributors

Composer installation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Hyva Checkout Hide Business Fields Magento compatibility status badge

README

Loaded from GitHub

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>

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.