LokiCheckout_DevProfiles
This Magento 2 module is an add-on package to the LokiCheckout. It adds the option to select a profile in a selectbox and then autofill all values with one HTTP request.
Installation
Install this package via composer:
composer require loki-checkout/magento2-dev-profiles
Next, enable this module:
bin/magento module:enable LokiCheckout_DevProfiles
Profile creation
To create a new profile, add a class like the following. The example assumes a module YireoTraining_ExampleLokiCheckoutProfile. Make sure to implement the ProfileInterface.
<?php declare(strict_types=1); namespace YireoTraining\ExampleLokiCheckoutProfile\Profile; use LokiCheckout\DevProfiles\Profile\ProfileInterface; class JohnDoeProfile implements ProfileInterface { public function getCode(): string { return 'john_doe'; } public function getLabel(): string { return 'John Doe'; } public function getAddressValues(): array { return [ 'firstname' => 'John', 'lastname' => 'Doe', ]; } public function getEmailAddress(): string { return 'john@example.com'; } }
Next, register this profile with a 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="LokiCheckout\DevProfiles\Profile\ProfileListing"> <arguments> <argument name="profiles" xsi:type="array"> <item name="john_doe_profile" xsi:type="object">YireoTraining\ExampleLokiCheckoutProfile\Profile\JohnDoeProfile</item> </argument> </arguments> </type> </config>
After refreshing the cache, the new profile should appear in the profile selection box.
Support
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout-dev/LokiCheckout_DevProfiles.git
Loki Components
The following LokiComponents are created or references in this module:
loki-checkout-dev-profiles.profile-switcher
Module Dependencies
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_CatalogInventory
Magento_Checkout
Magento_CheckoutAgreements
Magento_Config
Magento_Customer
Magento_Directory
Magento_Eav
Magento_Newsletter
Magento_Payment
Magento_Quote
Magento_Sales
Magento_Shipping
Magento_Store
Magento_Tax
Magento_Vault
Yireo_CspUtilities
Composer details
LokiCheckout_DevProfilesloki-checkout/magento2-dev-profiles
loki-checkout/magento2-core: ^2.0
loki/magento2-components: ^2.0
loki/magento2-css-utils: ^1.0
magento/framework: ^103.0
magento/module-checkout: ^100.0
magento/module-quote: ^101.0
magento/module-store: ^101.0
Releases
| 2.0.10 | 12 June 2026 |
| 2.0.9 | 12 June 2026 |
| 2.0.8 | 12 June 2026 |
| 2.0.7 | 12 June 2026 |
| 2.0.6 | 12 June 2026 |
| 2.0.5 | 12 June 2026 |
| 2.0.4 | 12 June 2026 |
| 2.0.3 | 12 June 2026 |
| 2.0.2 | 12 June 2026 |
| 2.0.1 | 12 June 2026 |
| 2.0.0 | 12 June 2026 |
| 1.0.0 | 12 June 2026 |
| 0.0.3 | 12 June 2026 |
| 0.0.2 | 12 June 2026 |
| 0.0.1 | 12 June 2026 |
Changelog
[2.0.10] - 12 February 2026
Fixed
- Make sure grand total is loaded after addtocart
[2.0.9] - 28 January 2026
Fixed
- Enter Dutch lines as regular full street
[2.0.8] - 20 January 2026
Fixed
- Add middlename to empty profile
- Fix reset to empty profile
[2.0.7] - 03 November 2025
Fixed
- Update composer keywords
- Update composer keywords
- Update composer keywords
- JS-based switching of profiles
- Add separate Austin and LA profile
[2.0.6] - 22 October 2025
Fixed
- Do not escape
$css()withescapeHtmlAttr()butescapeHtml() - Update README
[2.0.5] - 24 September 2025
Fixed
- Rename loki-scripts to loki.script
[2.0.4] - 02 September 2025
Fixed
- Remove LengthBehaviourInterface
- Add USA profile
- Add CI files
- Replace yireo/opensearch with yireo/opensearch-dummy in Gitlab CI
[2.0.3] - 21 August 2025
Fixed
- Add dependency with loki/magento2-css-utils
- Fix duplicate import
- Replace LokiComponentsUtilBlockCssClass with LokiCssUtilsUtilCssClass
- Declare used PHP namespaces
- Document latest version of template
[2.0.2] - 19 August 2025
Fixed
- Lower requirements to PHP 8.1
- Fix A11Y issues
[2.0.1] - 07 August 2025
Fixed
- Lower PHP requirement to PHP 8.2+
[2.0.0] - 22 July 2025
Fixed
- Rename PHP namespace from
Yireo_Loki*toLoki* - Rename composer package from
yireo/magento2-loki*toloki/magento2* - Bump loki/magento2-components to major 2.0
- Bump loki/magento2-field-components to major 2.0
- Bump
LokiCheckout_Core to 2.0.0
[1.0.0] - 26 May 2025
Fixed
- Add France profile
- Generate new MODULE.json with simple test count
- Fix additional runs of Playwright tests
- Allow PHP 8.4 in CI
- Update composer and module deps
[0.0.3] - 25 April 2025
Fixed
- Allow upgrading to LokiFieldComponents and LokiCheckout 1.0
- Remove x-model because of CSP compliance
- Reduce dependencies with CheckoutState::saveQuote()
[0.0.2] - 16 April 2025
Fixed
- Move scripts from "before.body.end" to new "loki-scripts" container
[0.0.1] - 08 April 2025
- Initial release