I'm trying to get the quantities of a bundle product before added to cart with js, jquery, knockout js or whatever can allow me to do this. I want to validate that user cannot add to cart if the qty of products added to bundle is not 7.

I show an example.

enter image description here

I need to get those qty and enable or disable Add to Cart button, depending on the qty.

Where can I start to have a look? I know that in module-checkout/view/frontend/templates there are some useful templates that I can override.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.