Add increment & decrement for product quantity based on ajax success


/*16-06-16 start*/
jQuery(document).ready(function(){
jQuery(document).ajaxSuccess(function() {
jQuery( ‘.wc-new div.quantity:not(.buttons_added), wc-new td.quantity:not(.buttons_added)’ ).addClass(                               ‘buttons_added’ ).append( ‘<input type=”button” value=”+” class=”plus” />’ ).prepend( ‘<input                                        type=”button” value=”-” class=”minus” />’ );
});
});
/*16-06-16 end*/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s