These are chat archives for reactioncommerce/reaction
Hi everyone, I am adding quantity inputs to the child variants and would like to know the preferred way to loop through these child variant quantities and add them to the cart in the add-to-cart event.
I've added myProductDetail.html and .js to the roots client directory and extended the template with Template.myProductDetail.replaces.
I believe I need to change the "if (productId)" on line 158 of productDetail.js to a loop and iterate over each child variant. If the quantity is greater than zero, Meteor.call('cart/addToCart').
Is this the preferred way to accomplish this?