How to delete the item from cart in checkout?
File Magento_Checkout/web/template/summary/item/details.html
<div class="cart-item__col-subtotal">
<div class="cart-item__subtotal" >
<div class="cart-item__delete" data-bind="click: console.log($parent.item_id)"><span data-bind="i18n: 'Delete'"></span></div>
<!-- ko foreach: getRegion('after_details') -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!-- /ko -->
</div>
</div>
How to connect js file and delete item on click?
Best Answer
vendor/magento/module-checkout/view/frontend/web/js/view/summary/item/details.js
vendor/magento/module-checkout/view/frontend/web/template/summary/item/details.html
Note: I modified core files for testing purpose only. You should create extension to override those files.