I am new to SuiteCommerce Advanced development and I would like to override a module from the Product Details Page.
The goal is to add a "max" attribute to the 'Quantity' input for products and the max attribute value will be set to the quantityAvailable for the current product being viewed. The reason is I want to prevent the user from adding more than what is currently available to their cart.
I am guessing that I need to override the core ProductDetails module and override the ProductDetails.Quantity.View.js file.
My thinking would be to just add a condition in the 'setQuantity' and 'setFocus' methods to check the quantity available for the item, but I don't know where to start in order to pull this data into the module.
Does anyone have any ideas? Currently on SCA Elbrus.