How to call a check for a product class in Ubercart In the Ubercart D7 uc attribute module I am trying to  run code on the fieldset attribute if the product is a specific product class in the module with an if statement.
This calls an  if  for payment received
      if ($op == 'update' &amp;&amp; $order-&gt;order_status == 'payment_received' &amp;&amp; $arg2 == 'completed') { 
// ... your code goes here 

}
How do I call it for a product class??
In uc_attributes module at
   function uc_attribute_uc_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  //. other code of module's function... 
    $element[$key]['#type'] = 'fieldset';
    //    if (product class . ..) {
  // ... your code goes here

So that only the validate code runs on the field set if the product is the same product class
I have rest of the code largely ready to go
The function to use is:
uc_product_is_product($node)

This returns a boolean variable indicating whether the node is a product type.