Title: Page reloads when using button
Last modified: March 22, 2019

---

# Page reloads when using button

 *  Resolved [ItsDan](https://wordpress.org/support/users/itsdan/)
 * (@itsdan)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-reloads-when-using-button/)
 * Just a note, I had to uncomment this line, in enhanced-ajax-add-to-cart-wc-public.
   js @ 72: e.preventDefault();
 * If I didn’t the page would reload when using the button. AJAX features of WC 
   are turned on.
    -  This topic was modified 7 years, 4 months ago by [ItsDan](https://wordpress.org/support/users/itsdan/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [The Rite Sites](https://wordpress.org/support/users/theritesites/)
 * (@theritesites)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/page-reloads-when-using-button/#post-11354695)
 * Hey ItsDan!
 * You will now see this fixed in the new version, 1.2.0
 * Thanks for catching this and sending the post in!
 * – Parker @ The Rite Sites

Viewing 1 replies (of 1 total)

The topic ‘Page reloads when using button’ is closed to new replies.

 * ![](https://ps.w.org/enhanced-ajax-add-to-cart-for-woocommerce/assets/icon-256x256.
   png?rev=1899582)
 * [Enhanced AJAX Add to Cart for WooCommerce](https://wordpress.org/plugins/enhanced-ajax-add-to-cart-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enhanced-ajax-add-to-cart-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enhanced-ajax-add-to-cart-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/enhanced-ajax-add-to-cart-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enhanced-ajax-add-to-cart-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enhanced-ajax-add-to-cart-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [The Rite Sites](https://wordpress.org/support/users/theritesites/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/page-reloads-when-using-button/#post-11354695)
 * Status: resolved