Simple issue : What should I do in order to override a native js file.

In that specific case : src/vendor/magento/module-inventory-configurable-product-frontend-ui/view/frontend/web/js/configurable-variation-qty.js

1 Answer 1


If the changes you want to do can be performed using mixin, create one following the steps - https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/js_mixins.html

If you want to overide and call your file instead of core file-

Place file in you theme on path i.e


and add the required changes.

Hope that helps.

Your Answer

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

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