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' && $order->order_status == 'payment_received' && $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(&$form, &$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