I want to disable the checkout button from the mini cart when an (or any) item is added that has $0.00 as a price.

I have copied the minicart.phtml file from: /var/www/html/vendor/magento/module-checkout/view/frontend/templates/cart and added it to my theme. I am confused because the calls look like they are in Javascript and PHP. How would I approach this?

1 Answer 1


I would override vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js in my theme or module and check there if any of the items is got a 0$ price to use jquery to disable/enable the button

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.