These are my two option boxes to choose from. Client can only choose from one selection and the other will be blocked or forbidden to choose.
I hope you understand ?? I am bad at describing my problems ??
`
$meta_boxes[] = array(
‘id’ => ‘product_metabox’,
‘title’ => ‘ENERGIAM?RGIS’,
‘pages’ => array( ‘kliimaseade_product’, ), // Post type
‘context’ => ‘normal’,
‘priority’ => ‘high’,
‘show_names’ => true, // Show field names on the left
//’show_on’ => array( ‘key’ => ‘id’, ‘value’ => array(), ), // Specific post IDs to display this metabox
‘fields’ => array(
‘name’ => ‘Komplektim?rgis 1’,
‘desc’ => ”,
‘id’ => $prefix .’product_energy_class’,
‘type’ => ‘select’,
‘options’ => array(
‘none’ => __(‘–‘),
‘mark-1’ => __(‘A+++’),
‘mark-2’ => __(‘A++’),
‘mark-3’ => __(‘A+’),
‘mark-4’ => __(‘A’),
‘mark-5’ => __(‘B’),
‘mark-6’ => __(‘C’),
‘mark-7’ => __(‘D’),
‘mark-8’ => __(‘E’),
‘mark-9’ => __(‘F’),
‘mark-10’ => __(‘G’),
),
),
array(
‘name’ => ‘Tootem?rgis 1’,
‘desc’ => ”,
‘id’ => $prefix .’product_energy_subclass’,
‘type’ => ‘select’,
‘options’ => array(
‘none’ => __(‘–‘),
‘mark-11’ => __(‘A++’),
‘mark-13’ => __(‘A+’),
‘mark-14’ => __(‘A’),
‘mark-15’ => __(‘B’),
‘mark-16’ => __(‘C’),
‘mark-17’ => __(‘D’),
‘mark-18’ => __(‘E’),
‘mark-19’ => __(‘F’),
‘mark-20’ => __(‘G’),
),
)
etc