<?xml version="1.0" encoding="UTF-8"?>
<!-- This is a code snippets export file generated by the Code Snippets WordPress plugin. -->
<!-- https://wordpress.org/plugins/code-snippets -->
<!-- To import these snippets a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Install the Code Snippets plugin using the directions provided at the above link. -->
<!-- 3. Go to 'Tools: Import' in the WordPress admin panel. -->
<!-- 4. Click on the "Code Snippets" importer in the list -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. Code Snippets will then import all of the snippets and associated information contained in this file into your site. -->
<!-- 7. You will then have to visit the 'Snippets: All Snippets' admin menu and activate desired snippets. -->
<!-- generator="Code Snippets/2.9.4" created="2017-10-03 19:13" -->
<snippets>
  <snippet scope="2">
    <name>Add AJAX based “Add to cart” button on WooCommerce single product page</name>
    <desc></desc>
    <tags>add, to, cart, ajax, buttom, woocommerce</tags>
    <code>remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );&#13;
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_loop_add_to_cart', 30 );</code>
  </snippet>
</snippets>