Loki_QuoteExtended
Other
PHP
8.1 - 8.4
Magento
2.4.7 | 2.4.8
CSP
Yes
Unit Tests
5
Integration Tests
5
PHPStan
1
Magento PHPCS
10
Installation
Install this package via composer:
composer require loki-checkout/magento2-quote-extended
Next, enable this module:
bin/magento module:enable Loki_QuoteExtended
Usage
This module adds a table loki_quote_extended with one row per quote. When the order is placed, the row is linked to the order (order_id).
To store a custom value:
- Add a column to
loki_quote_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_field), using the templateLoki_FieldComponents::form/field.phtml. - Register the block in your
etc/loki_components.xmlwith the groupquoteExtendedFields.
To display the value:
- Frontend (current quote):
Loki\QuoteExtended\ViewModel\CheckoutQuoteExtendedView::getValue('example_field') - Admin order and invoice pages:
Loki\QuoteExtended\ViewModel\Adminhtml\OrderQuoteExtendedView::getValue('example_field') - Order and invoice emails:
{{var loki_quote_extended.example_field}}
See Loki_QuoteExtendedExample for a complete example.
Current status
WARNING: This module has no releases yet. If you want to use it, make sure to add the version
@dev
to the composer command.
Support
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout/Loki_QuoteExtended.git
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_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_Email
Magento_Indexer
Magento_MediaStorage
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_QuoteExtendedComposer name
loki-checkout/magento2-quote-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
psr/log: ^1.0 | ^2.0 | ^3.0
php: >=8.2 <8.6
Releases
Changelog
Last modified: October 1, 2026