title: WooCommerce Changing Quantity Text Before Add to Card by Product ID
body: <p>I've bashed together this code for WooCommerce and was able to get it to work.
  It changes the text before the quantity selector as shown depending on the product ID.
  I had three questions about my approach though -</p>
  <ol>
  <li>Is this coded efficiently, or can it be done better?</li>
  <li>How would I go about doing this for Product Variations, at the
  moment it only changes it for simple and parent products</li>
  <li>Is there a better way to do this, like by changing it depending on
  the products variation attributes?</li>
  </ol>
  <pre><code> 
  function brightLight_qty_label_add_cart() {
   global $product;
   $id = $product-&gt;get_id();
     if (( 2131 === $id) || ( 2152 === $id) || ( 2153 === $id) || ( 2145 === $id) || ( 2177 === $id) || ( 2165 === $id) || ( 2166 === $id) || ( 2664 === $id) || ( 2169 === $id) || ( 2155 === $id)){
   echo '&lt;div class=&quot;qty&quot;&gt;Packs: &lt;/div&gt;';
    }
  
    elseif (( 2100 === $id) || ( 2099 === $id) || ( 2089 === $id) || ( 2080 === $id) || ( 2394 === $id) || ( 2175 === $id)){
   echo '&lt;div class=&quot;qty&quot;&gt;Fillets: &lt;/div&gt;';
    }
  
    elseif (( 2133 === $id) || ( 2132 === $id)){
   echo '&lt;div class=&quot;qty&quot;&gt;Tubs: &lt;/div&gt;';
    }
  
    elseif (( 2101 === $id) || ( 2104 === $id) || ( 2071 === $id)){
   echo '&lt;div class=&quot;qty&quot;&gt;Crabs: &lt;/div&gt;';
    }
  
    elseif (( 2416 === $id) || ( 2419 === $id)){
   echo '&lt;div class=&quot;qty&quot;&gt;How Many Dozen: &lt;/div&gt;';
    }
  
   else {
   echo '&lt;div class=&quot;qty&quot;&gt;Pieces: &lt;/div&gt;'; }
  }
  </code></pre>
  <p>Any help will be greatly appreciated.</p>