[-] FO : #PSTEST-74 : change the condition of product if is a virtual product
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<input type="text" name="attachment_name_{$language.id_lang}" value="{$attachment_name[$language.id_lang]}" />
|
||||
</div>
|
||||
{/foreach}
|
||||
<sup> *</sup>
|
||||
</div>
|
||||
<div class="clear"> </div>
|
||||
<label>{l s='Description:'} </label>
|
||||
|
||||
@@ -99,6 +99,8 @@
|
||||
$('#virtual_product').attr('checked', 'checked');
|
||||
$('li.tab-row a[id*="Pack"]').hide();
|
||||
$('li.tab-row a[id*="Shipping"]').hide();
|
||||
$('#condition').attr('disabled', 'disabled');
|
||||
$('#condition option[value=new]').attr('selected', 'selected');
|
||||
{else}
|
||||
$('#simple_product').attr('checked', 'checked');
|
||||
$('li.tab-row a[id*="Pack"]').hide();
|
||||
@@ -124,6 +126,8 @@
|
||||
$('#ppack').val(1).attr('checked', true).attr('disabled', 'disabled');
|
||||
$('#ppackdiv').show();
|
||||
$('li.tab-row a[id*="Shipping"]').show();
|
||||
$('#condition').removeAttr('disabled');
|
||||
$('#condition option[value=new]').removeAttr('selected');
|
||||
}
|
||||
else if (val == 2)
|
||||
{
|
||||
@@ -133,9 +137,16 @@
|
||||
$('#is_virtual').val(1);
|
||||
$("#virtual_good_attributes").show();
|
||||
$('li.tab-row a[id*="Shipping"]').hide();
|
||||
$('#condition').attr('disabled', 'disabled');
|
||||
$('#condition option[value=refurbished]').removeAttr('selected');
|
||||
$('#condition option[value=used]').removeAttr('selected');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('li.tab-row a[id*="Shipping"]').show();
|
||||
$('#condition').removeAttr('disabled');
|
||||
$('#condition option[value=new]').removeAttr('selected');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user