title: Add plus and minus buttons to WooCommerce
body: <p>WooCommerce decided to remove the + and - buttons from the product and cart pages to increase or decrease quantity. They say it was redundant to have and if anyone wants them back just install another plugin from them.</p>
  
  <p>I, like others, don't wish to install a plugin when using code is the wiser option. Better yet, we should've been given the choice to keep them or not. I digress... </p>
  
  <p>I've scoured the net for a solution, tried a couple, but no joy. Would really appreciate assistance with code needed to bring them back and where that code should be placed. </p>
  
  <p>Found an answer on another <a href="https://stackoverflow.com/questions/31691038/woocommerce-plus-minus-button-in-cart-shows-intermittently">thread here</a>, though not sure exactly where it goes or if this is what I need to bring the buttons back</p>
  
  <pre><code>// Input +- tweak
  
  $(function(a){
  a(".woocommerce-ordering").on("change", "select.orderby", function(){
  a(this).closest("form").submit();
  }),
  a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('&lt;input type="button" value="+" class="plus" /&gt;').prepend('&lt;input type="button" value="-" class="minus" /&gt;'), a("input.qty:not(.product-quantity input.qty)").each(function(){
  var b=parseFloat(a(this).attr("min"));b&amp;&amp;b&gt;0&amp;&amp;parseFloat(a(this).val())&lt;b&amp;&amp;a(this).val(b);
  }),
  a(document).on("click", ".plus, .minus", function(){
  var b=a(this).closest(".quantity").find(".qty"),
  c=parseFloat(b.val()),
  d=parseFloat(b.attr("max")),
  e=parseFloat(b.attr("min")),
  f=b.attr("step");c&amp;&amp;""!==c&amp;&amp;"NaN"!==c||(c=0),
  (""===d||"NaN"===d)&amp;&amp;(d=""),
  (""===e||"NaN"===e)&amp;&amp;(e=0),
  ("any"===f||""===f||void 0===f||"NaN"===parseFloat(f))&amp;&amp;(f=1),
  a(this).is(".plus")?b.val(d&amp;&amp;(d==c||c&gt;d)?d:c+parseFloat(f)):e&amp;&amp;(e==c||e&gt;c)?b.val(e):c&gt;0&amp;&amp;b.val(c-parseFloat(f)),
  b.trigger("change");
  });
  });
  </code></pre>
  
  <p>Thanks in advance!</p>