commerce default tax in inline entity form
Hi
when adding a productvariation I want to make my tax (btw_21) the default setting.
I added this to template.php but it doesn't work.
function blueblot_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'commerce_product_ui_product_form':
$form['commerce_price']['und']['0']['include_tax']['#default_value'] = 'btw_21';
//hide the tax dropdown if you like
$form['commerce_price']['und']['0']['include_tax']['#access'] = FALSE;
break;
}
'commerce_product_ui_product_form' is this correct for a standard commerce product form?
thx
Kris
Comments
Default tax rate is a great little time saver and I'm surprised more people are not using it