Loki_QuoteAddressExtended
Other
Professional
Standard
Trial
PHP
8.2 - 8.5
Magento
2.4.6 - 2.4.9
CSP
Yes
Unit Tests
72
Integration Tests
40
Functional Tests
6
PHPStan
1
Magento PHPCS
6
License
OSL-3.0
Latest Release
0.0.2
Installation
Install this package via composer:
composer require loki-checkout/magento2-quote-address-extended
Next, enable this module:
bin/magento module:enable Loki_QuoteAddressExtended
Usage
This module adds a table loki_quote_address_extended with one row per quote address (quote_address_id). When the order is placed, each row is linked to the matching order address (order_address_id).
To store a custom value:
- Add a column to
loki_quote_address_extendedvia your ownetc/db_schema.xml(plusdb_schema_whitelist.json). - Add a field block to the Loki Checkout whose name ends with the column name (e.g.
loki-checkout.customer.example_address_field), using the templateLoki_FieldComponents::form/field.phtml. Optionally add the block arguments:address_type:shipping,billingorauto(default; the shipping address, or the billing address for virtual quotes);field_name: the column name, when it differs from the last part of the block name.
- Register the block in your
etc/loki_components.xmlwith the groupquoteAddressExtendedFields.
To display the value:
- Frontend (current quote):
Loki\QuoteAddressExtended\ViewModel\CheckoutQuoteAddressExtendedView::getValue('example_address_field', 'auto') - Admin order and invoice pages:
Loki\QuoteAddressExtended\ViewModel\Adminhtml\OrderAddressExtendedView::getValue('example_address_field', 'auto') - Order and invoice emails:
{{var loki_shipping_address_extended.example_address_field}}and{{var loki_billing_address_extended.example_address_field}}
Rows that are linked to neither a quote address nor an order address are removed by the cron job loki_quote_address_extended_delete_orphaned_rows.
See Loki_QuoteAddressExtendedExample for a complete example.
Current status
Magento 2 Integration Tests
success
Magento 2 DI compilation
success
Magento 2 Static Tests
success
Playwright test
failure
Magento 2 Unit Tests
success
Support
For getting support, create an Issue under the following project URL:
https://github.com/LokiExtensions/Loki_QuoteAddressExtended
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
Magento_AdminNotification
Magento_Backend
Magento_Catalog
Magento_CatalogInventory
Magento_Checkout
Magento_CheckoutAgreements
Magento_Cms
Magento_Config
Magento_Cron
Magento_Csp
Magento_Customer
Magento_Directory
Magento_Eav
Magento_Indexer
Magento_Newsletter
Magento_Payment
Magento_Quote
Magento_Rule
Magento_Sales
Magento_SalesRule
Magento_SalesSequence
Magento_Shipping
Magento_Store
Magento_Tax
Magento_Theme
Magento_Ui
Magento_User
Magento_Variable
Magento_Vault
Magento_Widget
Yireo_CspUtilities
Composer details
Magento module name
Loki_QuoteAddressExtendedComposer name
loki-checkout/magento2-quote-address-extendedComposer version
No release yet
Default branch
main
Requirements
loki-checkout/magento2-core: ^2.3
loki/magento2-components: ^2.2
loki/magento2-field-components: ^2.2
magento/framework: ^103.0
magento/module-cron: ^100.4
magento/module-quote: ^101.2
magento/module-sales: ^103.0
magento/module-store: ^101.1
php: >=8.2 <8.6
psr/log: ^1.0 | ^2.0 | ^3.0
Releases
| 0.0.2 | 06 November 2026 |
Changelog
[0.0.2] - 29 October 2026
Fixed
- Declare
Magento_Storeand phpunit dependencies
Added
- Link extended quote address data to order addresses
- Add cron job to delete orphaned rows
[0.0.1] - September 2026
- Initial release
Last modified: October 1, 2026