title: Using ACF true/false field on WooCommerce single product page
body: <p>I have a WooCommerce site and in the single product page I have a custom checkbox to agree to terms before the add to cart button, but I am trying to add a true/false field in the dashboard so that this checkbox can be moved to a different position on the page.</p>
  <p>My functions look like this:</p>
  <pre class="lang-php prettyprint-override"><code>add_action( 'acf/init', &quot;acf_move_checkbox&quot;, 10 );
  
  function acf_move_checkbox() {
    
    $move_cart = get_field('move_cart');
  
      if ($move_cart) {
  
          add_action( 'woocommerce_after_single_product', &quot;acf_product_terms&quot;, 10 );
  
      } else {
  
          add_action( 'woocommerce_before_add_to_cart_form', &quot;acf_product_terms&quot;, 10 );
  
      }
  
  // More code
  
  }
  </code></pre>
  <p>And nothing is happening, am I along the right lines with this or way off?</p>