Merge pull request #2298 from sbrajesh/master

Allow reusing virtual/downlodable option
This commit is contained in:
Mike Jolley 2013-01-28 03:01:28 -08:00
commit 79eec982d1
1 changed files with 2 additions and 18 deletions

View File

@ -931,15 +931,7 @@ jQuery( function($){
$('.show_if_virtual').show();
}
if ( product_type == 'simple' ) {
$('.show_if_simple').show();
} else if ( product_type == 'variable' ) {
$('.show_if_variable').show();
} else if ( product_type == 'grouped' ) {
$('.show_if_grouped').show();
} else if ( product_type == 'external' ) {
$('.show_if_external').show();
}
$('.show_if_'+product_type).show();
// Hide rules
if ( is_downloadable ) {
@ -949,15 +941,7 @@ jQuery( function($){
$('.hide_if_virtual').hide();
}
if ( product_type == 'simple' ) {
$('.hide_if_simple').hide();
} else if ( product_type == 'variable' ) {
$('.hide_if_variable').hide();
} else if ( product_type == 'grouped' ) {
$('.hide_if_grouped').hide();
} else if ( product_type == 'external' ) {
$('.hide_if_external').hide();
}
$('.hide_if_'+product_type).hide();
}