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.
Supported Magento versions: 2.4.9
61,826 installs★ 13 starsLatest: v1.1.3Released 2026-06-02
composer require vendic/hyva-checkout-hide-business-fieldsREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
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>
composer require vendic/hyva-checkout-hide-business-fields
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>
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues