LokiCheckout_Coc

Other
Professional
Standard
PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
Unit Tests 12
Integration Tests 21
PHPStan 1
Magento PHPCS 6
License OSL-3.0
Latest Release 1.0.8

This Magento 2 module is an add-on package to the LokiCheckout. It adds a Chamber of Commerce field to the checkout.

Installation

Install this package via composer:

composer require loki-checkout/magento2-coc

Next, enable this module:

bin/magento module:enable LokiCheckout_Coc

Current status

pipeline success

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/LokiCheckout_Coc.git

Loki Components

The following LokiComponents are created or references in this module:

loki-checkout-coc.billing.address.coc loki-checkout-coc.shipping.address.coc
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_Csp Magento_Customer Magento_Directory Magento_Eav Magento_Indexer Magento_MediaGalleryUiApi 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
LokiCheckout_Coc
Composer name
loki-checkout/magento2-coc
Composer version
1.0.8
Default branch
main
Requirements
loki-checkout/magento2-core: ^2.7.1
loki/magento2-components: ^2.0
loki/magento2-field-components: ^2.0
magento/framework: ^103.0
magento/module-customer: ^103.0
magento/module-eav: ^102.1
magento/module-quote: ^101.2
magento/module-sales: ^103.0
magento/module-store: ^101.1
php: >=8.2 <8.6
Releases
1.0.8 11 November 2026
1.0.7 11 November 2026
1.0.6 11 November 2026
1.0.5 11 November 2026
1.0.4 11 November 2026
1.0.3 11 November 2026
1.0.2 11 November 2026
1.0.1 11 November 2026
1.0.0 11 November 2026
0.0.4 11 November 2026
0.0.3 11 November 2026
0.0.2 11 November 2026
0.0.1 11 November 2026
Changelog

[1.0.8] - 06 November 2026

Fixed

  • Declare Magento_Quote and Magento_Sales dependencies and align PHP versions
  • Use AddressStateInterface::get() instead of deprecated load() in CocValue
  • Limit CoC to 128 characters to match the database column
  • Copy CoC between quote, order and customer addresses

Added

  • Show CoC in formatted order addresses (admin, account, emails, PDFs)

[1.0.7] - 14 October 2026

Fixed

  • Add trim() its second argument for PHP 8.6 compatibility
  • Show billing CoC value (instead of shipping CoC value) in billing address of sidebar, by requiring LokiCheckout_Core 2.7.1+ (#7)

[1.0.6] - 28 August 2025

Fixed

  • Add CI files
  • Replace yireo/opensearch with yireo/opensearch-dummy in Gitlab CI

[1.0.5] - 26 August 2025

Fixed

  • 7484080 Add GitLab CI files

[1.0.4] - 21 August 2025

Fixed

  • Declare used PHP namespaces
  • Document latest version of template

[1.0.3] - 18 August 2025

Fixed

  • Lower requirements to PHP 8.1

[1.0.2] - 07 August 2025

Fixed

  • Lower PHP requirement to PHP 8.2+

[1.0.1] - 01 August 2025

Fixed

  • Only show CoC in sidebar if not empty
  • Add to billing as well
  • Add CoC value to sidebar

[1.0.0] - 22 July 2025

Fixed

  • Rename PHP namespace from Yireo_Loki* to Loki*
  • Rename composer package from yireo/magento2-loki* to loki/magento2*

[0.0.4] - 08 July 2025

Fixed

  • Generate new MODULE.json with simple test count
  • Allow PHP 8.4 in CI

[0.0.3] - 25 April 2025

Fixed

  • Allow upgrading to LokiFieldComponents and LokiCheckout 1.0
  • Change composer keyword loki-misc to loki-other

[0.0.2] - 08 April 2025

Fixed

  • Housekeeping

[0.0.1] - 21 January 2025

  • Initial release

Last modified: June 1, 2026