This Magento 2 module is an add-on package for adding a new field Account Type to the Loki Checkout, allowing a customer to register as either on Individual account or a Company account. When the account type is set to Individual, the company field and the VAT ID field are not rendered.
Install this package via composer:
composer require loki-checkout/magento2-account-type
Next, enable this module:
bin/magento module:enable LokiCheckout_AccountType
This module adds a new Loki Component account_type
to both the billing and the shipping address. This includes both a ComponentViewModel and a ComponentRepository. To allow for the company field and the VAT ID field not to be rendered, DI plugins are made for the corresponding ComponentViewModels.
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout/LokiCheckout_AccountType
The following options of this module can be configured via the Store Configuration:
loki_checkout/account_type/hide_company
loki_checkout/account_type/hide_vat_id
loki_checkout/account_type/default
The following LokiComponents are created or references in this module:
loki-checkout.billing.address.account_type
loki-checkout.shipping.address.account_type
The following dependencies are declared in the module its `etc/module.xml` file:
LokiCheckout_Core
Loki_Base
Loki_Components
Loki_CssUtils
Loki_FieldComponents
Loki_MapComponents
Magento_Backend
Magento_Catalog
Magento_Checkout
Magento_CheckoutAgreements
Magento_Config
Magento_Customer
Magento_Directory
Magento_Eav
Magento_MediaStorage
Magento_Newsletter
Magento_Payment
Magento_Quote
Magento_Sales
Magento_Shipping
Magento_Store
Magento_Theme
Magento_Vault
Yireo_CspUtilities
LokiCheckout_AccountType
loki-checkout/magento2-account-type
loki-checkout/magento2-core: ^2.0
loki/magento2-components: ^2.0
loki/magento2-field-components: ^2.0
magento/framework: ^103.0
magento/module-config: ^101.0
magento/module-customer: ^103.0
magento/module-eav: ^102.0
magento/module-quote: ^101.0
magento/module-store: ^101.0
dev-main#c786f3d52c66c4926a5e4f9c4205bcfd264c5152 | 20 October 2025 |
2.0.11 | 20 October 2025 |
2.0.10 | 20 October 2025 |
2.0.9 | 20 October 2025 |
2.0.8 | 20 October 2025 |
2.0.7 | 20 October 2025 |
2.0.6 | 20 October 2025 |
2.0.5 | 20 October 2025 |
2.0.4 | 20 October 2025 |
2.0.3 | 20 October 2025 |
2.0.2 | 20 October 2025 |
2.0.1 | 20 October 2025 |
2.0.0 | 20 October 2025 |
1.0.1 | 20 October 2025 |
1.0.0 | 20 October 2025 |
0.0.8 | 20 October 2025 |
0.0.7 | 20 October 2025 |
0.0.6 | 20 October 2025 |
0.0.5 | 20 October 2025 |
0.0.4 | 20 October 2025 |
0.0.3 | 20 October 2025 |
LokiCheckout_Core
to 2.0Yireo_Loki*
to Loki*
yireo/magento2-loki*
to loki/magento2*
getCartRepository()->save()
to getCheckoutState()->saveQuote()
account_type
in customer_address
to save value intoloki_checkout.xml
grid CSS for mobile