Hello and congratulations on the very nice plugin. I would like to know if I can add an extra field to the table. My variation has an extra field from the ‘ACF Custom Fields’. And I would like it to appear in front of the table.
I have made the following changes to content-tbody.php file
add the field to $options:
$options['maza'] = $single_variation->get_meta('maza');
add the case for this field:
case 'maza': $key1_title = __('Maza', 'product-variant-table-for-woocommerce'); $key1 = apply_filters( 'pvtfw_maza_title', $key1_title ); break;
and also change the class_pvtfw_common.php file
'maza' => "on",to get_default_columns() function.
'maza' => __('Maza', 'product-variant-table-for-woocommerce')
to get_columns_labels() function.
But the field doesn’t display in table.
Have I made a mistake? Do I need to add the field elsewhere?
- The topic ‘Add extra custom field to table’ is closed to new replies.