vendic / hyva-checkout-hide-business-fields
Hyvä checkout module to hide business fields for consumers
Installs: 1 466
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~8.1|~8.2
- hyva-themes/magento2-hyva-checkout: ^1.1.0
This package is auto-updated.
Last update: 2024-07-17 14:03:40 UTC
README
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