LokiCheckout_EditCart

Other
PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
PHPStan 6
Magento PHPCS 8
Latest Release 2.0.9

This Magento 2 module is an add-on package for the LokiCheckout. It adds the ability to modify cart items via simple fields in the sidebar of the checkout.

Installation

Install this package via composer:

composer require loki-checkout/magento2-edit-cart

Next, enable this module:

bin/magento module:enable LokiCheckout_EditCart

Support

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

https://gitlab.yireo.com/loki-checkout/LokiCheckout_EditCart

Configuration Options

The following options of this module can be configured via the Store Configuration:

Edit Cart > Show Update Button
loki_checkout/edit_cart/show_update_button
Edit Cart > Show Removal Button
loki_checkout/edit_cart/show_remove_button
Loki Components

The following LokiComponents are created or references in this module:

loki-checkout.sidebar.items.item
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_Backend Magento_Catalog Magento_Checkout Magento_CheckoutAgreements Magento_Config Magento_Customer Magento_Directory Magento_Eav Magento_Newsletter Magento_Payment Magento_Quote Magento_Sales Magento_Shipping Magento_Store Magento_Theme Magento_Vault Yireo_CspUtilities Yireo_HyvaThemeAutoRegistration
Composer details
Magento module name
LokiCheckout_EditCart
Composer name
loki-checkout/magento2-edit-cart
Composer version
2.0.9
Default branch
main
Requirements
loki-checkout/magento2-core: ^2.0
loki/magento2-components: ^2.0
loki/magento2-css-utils: ^1.0
magento/framework: ^103.0
magento/module-backend: ^102.0
magento/module-config: ^101.2
magento/module-quote: ^101.0
Releases
dev-main#cec77d9babac776793e0137cf42d197ae31983b8 20 October 2025
2.0.9 20 October 2025
2.0.8 20 October 2025
2.0.7 20 October 2025
2.0.6 20 October 2025
2.0.5 20 October 2025
2.0.4 20 October 2025
2.0.3 20 October 2025
2.0.2 20 October 2025
2.0.1 20 October 2025
2.0.0 20 October 2025
1.0.0 20 October 2025
0.0.8 20 October 2025
0.0.7 20 October 2025
0.0.6 20 October 2025
0.0.5 20 October 2025
0.0.4 20 October 2025
0.0.3 20 October 2025
0.0.2 20 October 2025
0.0.1 20 October 2025
Changelog

[2.0.9] - 24 September 2025

Fixed

  • Fix unique input ID
  • Show loader when changing cart items
  • Enhance button behaviour when updating
  • Simplify HTML and CSS
  • Fix block rendering of static blocks
  • Add .prevent modifier to @click event handler
  • Rename loki-components container to loki.components

[2.0.8] - 16 September 2025

Fixed

  • Add PHPCS and PHPStan levels to MODULE.json
  • Add PHPStan level reached

[2.0.7] - 02 September 2025

Fixed

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

[2.0.6] - 26 August 2025

Fixed

  • 201ce23 Add GitLab CI files

[2.0.5] - 21 August 2025

Fixed

  • Add dependency with loki/magento2-css-utils
  • Fix formatting
  • Re-ordering blocks
  • Fix duplicate namespace
  • Replace LokiComponentsUtilBlockCssClass with LokiCssUtilsUtilCssClass
  • Declare used PHP namespaces
  • Document latest version of template
  • Add missing strict_types declaration

[2.0.4] - 18 August 2025

Fixed

  • Lower requirements to PHP 8.1
  • Allow toggling remove and edit button from Admin Panel

[2.0.3] - 07 August 2025

Fixed

  • Lower PHP requirement to PHP 8.2+

[2.0.2] - 01 August 2025

Fixed

  • Fix glitches
  • Divide actions.phtml into subtemplates; Add new select.phtml option (see docs)

[2.0.1] - 30 July 2025

Fixed

  • Enhance translations when adding and removing items

[2.0.0] - 22 July 2025

Fixed

  • Rename PHP namespace from Yireo_Loki* to Loki*
  • Rename composer package from yireo/magento2-loki* to loki/magento2*
  • Bump loki/magento2-components to major 2.0
  • Bump LokiCheckout_Core to 2.0.0

[1.0.0] - 24 May 2025

Fixed

  • Generate new MODULE.json with simple test count
  • Rewrite Alpine from initActions object to methods starting with init
  • Allow PHP 8.4 in CI

[0.0.8] - 25 April 2025

Fixed

  • Allow upgrading to LokiFieldComponents and LokiCheckout 1.0
  • Remove x-model because of CSP compliance
  • Allow to upgrade to LokiComponents 1.0
  • Remove CheckoutSession from context
  • Rewrite getCartRepository()->save() to getCheckoutState()->saveQuote()

[0.0.7] - 09 April 2025

Fixed

  • Give success instead of notice when updating item

[0.0.6] - 08 April 2025

Fixed

  • Housekeeping changes

[0.0.5] - 11 March 2025

Fixed

  • Accessibiity fixes
  • Add module dependencies
  • Huge refactoring to move logic into new LokiFieldComponents

[0.0.4] - 22 February 2025

Added

  • Change deps
  • Submit qty form with ENTER

Fixed

  • Submit qty form with ENTER

[0.0.3] - 18 February 2025

Fixed

  • Properly update quote after updating quote items
  • Properly update quote after removing quote items

[0.0.2] - 17 February 2025

Fixed

  • Lift deps

[0.0.1] - 21 January 2025

  • Add proper deps
  • Initial release

Last modified: September 1, 2025