title: Woocommerce if bought more than different one product
body: <p>In the final step of the checkout, i would to show a button ONLY if there are 2 or more DIFFERENTE products, so i was trying to figure a way to count if there was indeed 2 or more, i tried something like this:</p>
  
  <pre><code>if (sizeof(WC()-&gt;cart-&gt;get_cart()) != 1) {
  echo '&lt;a class="button emptycart" href="example-link"&gt;Sample-Text&lt;/a&gt;';
  }
  </code></pre>
  
  <p>Obviously with no luck. I tried doing like different cases when knowing the product id, but even when i only have 5, there would be like 25 if statements to accomplish this task, something like:</p>
  
  <pre><code>if ( woocommerce_customer_bought_product( $email, $current_user-&gt;ID, '5898' )) &amp;&amp; ( woocommerce_customer_bought_product( $email, $current_user-&gt;ID, '5936' )){
  echo '&lt;a style="float: right; position: relative;margin-top: -35px;" class="button emptycart" href="SAMPLE"&gt;BUY&lt;/a&gt;';
  }elseif ( woocommerce_customer_bought_product( $email, $current_user-&gt;ID, '5935' )) &amp;&amp; ( woocommerce_customer_bought_product( $email, $current_user-&gt;ID, '5937' )){
  echo '&lt;a class="button emptycart" href="SAMPLE"&gt;BUY&lt;/a&gt;';
  }
  </code></pre>
  
  <p>And so on... so any help would be appreciated. Thanks.</p>