Ajax add/remove from cart button
-
I’m using “do_action( ‘woocommerce_after_shop_loop_item’ ); ” to display an ajax add to cart button. It works as designed, but I would like it to act a bit differently.
On first click, the item should be added to the cart. On a second click, remove the item from the cart.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ajax add/remove from cart button’ is closed to new replies.