title: Woocommerce different T&C page for different products
body: <p>Is it possible to add different terms and condition pages for different products at woocommerce checkout ?
  If a order has some specific product, I need to show different T&amp;C page.</p>
  
  <p>In check out we show T&amp;C page link like image
  <a href="https://i.stack.imgur.com/kjn5X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kjn5X.png" alt="enter image description here"></a></p>
  
  <p>From the admin can't do that so I'm going to override the plugin <code>payment.php</code> file in my template and do the hack for below part</p>
  
  <pre><code>    &lt;?php if ( wc_get_page_id( 'terms' ) &gt; 0 &amp;&amp; apply_filters( 'woocommerce_checkout_show_terms', true ) ) : ?&gt;
                  &lt;p class="form-row terms"&gt;
  //If condition here 
                      &lt;label for="terms" class="checkbox"&gt;&lt;?php printf( __( 'I&amp;rsquo;ve read and accept the &lt;a href="%s" target="_blank"&gt;terms &amp;amp; conditions&lt;/a&gt;', 'woocommerce' ), esc_url( wc_get_page_permalink( 'terms' ) ) ); ?&gt;&lt;/label&gt;
                      &lt;input type="checkbox" class="input-checkbox" name="terms" &lt;?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); ?&gt; id="terms" /&gt;
                  &lt;/p&gt;
              &lt;?php endif; ?&gt; 
  </code></pre>
  
  <p>Is there any hook for do this in <code>functions.php</code> file ?</p>