Mixins for Checkout estimation.js file Magento 2.

Magento checkout estimation mixins for the class Magento_Checkout/js/view/estimation to modify the core Javascript method or add a new method to the file.

To create mixins, first, create a requirejs-config.js file in the module view/frontend area.

One Reply to “Mixins for Checkout estimation.js file Magento 2.”

  1. Hi Rakesh
    what if i want to call parent Class’s function.

    I’m having trouble receiving the return value from a function in the parent file.

    my code custom code is
    /* Start Place order function */

    this.selectPaymentMethod();
    setPaymentMethodAction(this.messageContainer).done(
    function () {
    customerData.invalidate([‘cart’]);
    $.mage.redirect(
    window.checkoutConfig.payment.paypalExpress.redirectUrl[quote.paymentMethod().method]
    );
    }
    );
    when i call the “this.selectPaymentMethod();” its give an error “its not a function”

Comments are closed.