0

i want to remove minicart product remove confirmation popup in magento 2.3 theme porto smartwave

https://prnt.sc/u3kh1f

2 Answers 2

0

Please refer this link to create a new theme: Create a new storefront theme

If frontend theme is already exists then copy your core file into theme folder.

From:

vendor/magento/module-checkout/view/frontend/web/js/sidebar.js

To:

app/design/frontend/<your_vendor_name>/<your_theme_name>/Magento_Checkout/web/js/sidebar.js

And replace the following code:

From:

/**
 * @param {jQuery.Event} event
 */
events['click ' + this.options.button.remove] =  function (event) {
    event.stopPropagation();
    confirm({
        content: self.options.confirmMessage,
        actions: {
            /** @inheritdoc */
            confirm: function () {
                self._removeItem($(event.currentTarget));
            },

            /** @inheritdoc */
            always: function (e) {
                e.stopImmediatePropagation();
            }
        }
    });
};

To:

/**
 * @param {jQuery.Event} event
 */
events['click ' + this.options.button.remove] =  function (event) {
    event.stopPropagation();
    self._removeItem($(event.currentTarget));
};
0

Your try using js.you want to change magento 2 default js check this link :-

Magento2 mini cart item delete alert

And Second you want to add custom js form.phtml file check this link:-

Confirmation popup before removing item from cart

THANKS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.