Home » Jquery » php – When click " add to cart" than button replace to quantity input and when quantity is 0 than "add to cart button" show

php – When click " add to cart" than button replace to quantity input and when quantity is 0 than "add to cart button" show

Posted by: admin February 22, 2020 Leave a comment

Questions:

enter image description here

hey Plz help me , I want to ‘add to cart’ button replace to quantity input( ex- www.grofers.com )
I find some snipet but its look like ugly (Replace "add to cart" with custom quantity input fields in Woocmmerce)
I want display add to cart button and than click to add show quantity input and than quantity input 0 display add to cart .

How to&Answer: