News & Shit

Woocommerce

X Theme & Pro Theme

Enabling AJAX Add to Cart on single product views, with X overlay

One simple tweak I make on many of my Woocommerce based websites is to enable the AJAX add to cart functionality. In many cases, having the user directed to a cart page isn’t ideal for your shop, and a hard reload to the same page is just silly. Someone in the Themeco community asked about how to do this, so I’m sharing the code I use.