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

Magento version PHP version License Latest Version

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:

  1. Add a column to loki_quote_extended via your own etc/db_schema.xml (plus db_schema_whitelist.json).
  2. Add a field block to the Loki Checkout whose name ends with the column name (e.g. loki-checkout.customer.example_field), using the template Loki_FieldComponents::form/field.phtml.
  3. Register the block in your etc/loki_components.xml with the group quoteExtendedFields.

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

Static Tests Unit Tests Integration Tests Playwright DI Compilation

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_QuoteExtended
Composer name
loki-checkout/magento2-quote-extended
Composer 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