loki-checkout / magento2-quote-extended-example
Example of adding a column to the loki_quote_extended table and showing it in checkout, emails and backend
Package info
github.com/LokiExtensions/Loki_QuoteExtendedExample
Language:HTML
Type:magento2-module
pkg:composer/loki-checkout/magento2-quote-extended-example
0.0.1
2026-11-27 13:01 UTC
Requires
- php: >=8.2 <8.6
- loki-checkout/magento2-core: ^2.3
- loki-checkout/magento2-quote-extended: ^1.0
- loki/magento2-field-components: ^2.2
- magento/framework: ^103.0
- magento/module-checkout: ^100.4
- magento/module-email: ^101.1
- magento/module-sales: ^103.0
Requires (Dev)
- loki/magento2-components: ^2.2
- loki/magento2-functional-tests: @dev
- magento/module-backend: ^102.0
- magento/module-store: ^101.1
- phpunit/phpunit: ^10.5
- yireo/magento2-integration-test-helper: ~0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 13:34:09 UTC
README
Installation
Install this package via composer:
composer require loki-checkout/magento2-quote-extended-example
Next, enable this module:
bin/magento module:enable Loki_QuoteExtendedExample
Usage
Example module for Loki_QuoteExtended. It adds a column example_field to the table loki_quote_extended and shows it:
- as an optional field in the Loki Checkout, below the customer gender;
- in the checkout sidebar (when filled in);
- in the order, invoice, shipment and credit memo emails (this module overrides the 8 core templates
sales_email_order_template,sales_email_order_guest_template,sales_email_invoice_template,sales_email_invoice_guest_template,sales_email_shipment_template,sales_email_shipment_guest_template,sales_email_creditmemo_templateandsales_email_creditmemo_guest_template; these are copies of the Magento 2.4.9 templates, so they need to be kept in sync on upgrades and they replace any theme overrides of these templates); - on the checkout success page and the customer account order view;
- on the admin order, invoice, shipment and credit memo pages, via the generic labelled display of
Loki_QuoteExtended(seeetc/adminhtml/di.xml).