title: Redirect to custom contact form after product purchase
body: <p>In wordpress, there is a plugin called woocommerce, were it enables the site to start selling a wide variety of products.</p>
  <p>I have a <code>woocommerce</code> shop set up, but I would need to increase its functionality by adding a contact form right after a purchase has been made.</p>
  <p>The chain of events would be:</p>
  <ol>
  <li>Customer purchases product</li>
  <li>Right after that, page redirects to a form for the user to fill (contains relevant information for me to work on)</li>
  <li>Customer send the form and proceeds as normal.</li>
  </ol>
  <p>I have this code to be placed into the theme code, but don't seem to find where:</p>
  <pre><code>add_action( 'template_redirect', 'woocommerce_redirect_after_checkout' );
  
  
  function woocommerce_redirect_after_checkout() {
  
  global $wp;
  
  
  
  if ( is_checkout() &amp;&amp; ! empty( $wp-&gt;query_vars['order-received'] ) ) {
  
  
  
  $redirect_url = 'https://businesscard.com/questionnaire/';
  
  
  
  wp_redirect($redirect_url );
  
  
  
  exit;
  
  }
  
  
  
  }
  
  </code></pre>