How to update the mini-cart proceed to checkout according to customer login in magento 2?

by Mujahidh   Last Updated June 12, 2019 08:09 AM

I Want to to check the user login status in mini cart and redirect the customer to login page when click the proceed to checkout button in mini-cart.

How to edit the minicart.js file to achieve this?


'url': {
            'checkout': window.checkout.checkoutUrl,
            'update': window.checkout.updateItemQtyUrl,
            'remove': window.checkout.removeItemUrl,
            'loginUrl': window.checkout.customerLoginUrl,
            'isRedirectRequired': window.checkout.isRedirectRequired

How to use the if condition to check the user is logged or not logged? enter image description here

Related Questions

Magento 2 weird error

Updated December 29, 2018 12:09 PM