When I remove an item in the Minicart, a modal popup pops up. This popup has two buttons: Cancel
and OK
. I want to change these strings to No
and Yes
, but I can't find the code where the modal is triggered.
I also don't want to translate Cancel
and OK
to No
and Yes
for obvious reasons. Where can I find the source for this?
Best Answer
Two buttons
Cancel
andOK
is default values defined invendor/magento/module-ui/view/base/web/js/modal/confirm.js
.If you want to update these button (not use translate), you have to override
vendor/magento/module-checkout/view/frontend/web/js/sidebar.js
, whereconfirm.js
is used, by copy it to custom themeapp/design/frontend/<Vendor>/<Theme>/Magento_Checkout/web/js/sidebar.js
. Then change event binding for removing items like this