Tuesday, 7 August 2018

woocommerce : replace "add to cart" with a quantity selector

I am using WooCommerce with Storefront theme to build an eCommerce website that will be used on smartphones mostly. So I am trying to reduce the number of clicks and buttons to make it as simple as possible.

I would like to replace "add to cart" button with a quantity selector :

for instance

I found a way to add a quantity selector next to "add to cart" button (e.g. with plugin WooCommerce Advanced Product Quantities) but I would like to get rid of "add to cart" button. So, when a customer click on "+", it should add 1 element to the cart and the number should display the quantity in the cart.

Also (no idea if this is possible...), I'd like an animation to notify the customer that the product was well added to the cart. For instance, show a "+1" for a few seconds near the cart icon,

like that



from woocommerce : replace "add to cart" with a quantity selector

No comments:

Post a Comment