snapjay / ngCart

Really simple shopping cart for AngularJS
http://ngcart.snapjay.com
380 stars 236 forks source link

Changing the cart quantity to an input element #92

Open jsheffers opened 7 years ago

jsheffers commented 7 years ago

Has anyone successfully altered the setQuantity function to allow for text inputs instead of only incrementing/decrementing already added products by one? I want each one of my products to have a text field where I can update the quantity in the cart directive. Any help would be appreciated.

GaboDot commented 7 years ago

Hi! You can modify the addtocart.html template, change the <select> for <input type="text"/>. Hope this helps.