[-] BO : fix bug #PSCFV-2522 - Unable to switch a product from virtual to normal
This commit is contained in:
@@ -234,6 +234,7 @@
|
||||
|
||||
<form id="product_form" action="{$form_action}" method="post" enctype="multipart/form-data" name="product" style="display:none;">
|
||||
<input type="hidden" name="id_product" value="{$id_product}" />
|
||||
<input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual}" />
|
||||
<div class="tab-pane" id="tabPane1">
|
||||
{if !$product->active && $product->isAssociatedToShop()}
|
||||
<div class="warn draft" >
|
||||
|
||||
@@ -116,7 +116,6 @@
|
||||
</div>
|
||||
{* [begin] virtual product *}
|
||||
<div id="virtual_good" {if !$product->productDownload->id || $product->productDownload->active}style="display:none"{/if} >
|
||||
<input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual}" />
|
||||
<div>
|
||||
<label>{l s='Does this product has an associated file?'}</label>
|
||||
<label style="width:50px"><input type="radio" value="1" name="is_virtual_file" {if $product_downloaded}checked="checked"{/if} />{l s='Yes'}</label>
|
||||
|
||||
@@ -816,9 +816,11 @@ product_tabs['Informations'] = new function(){
|
||||
$('li.tab-row a[id*="Pack"]').hide();
|
||||
$('li.tab-row a[id*="VirtualProduct"]').hide();
|
||||
$('div.ppack').hide();
|
||||
$('#is_virtual_good').removeAttr('checked');
|
||||
$('div.is_virtual_good').hide();
|
||||
$('#is_virtual').val(0);
|
||||
tabs_manager.onLoad('VirtualProduct', function(){
|
||||
$('#is_virtual_good').removeAttr('checked');
|
||||
});
|
||||
|
||||
product_type = $(this).val();
|
||||
|
||||
@@ -855,11 +857,11 @@ product_tabs['Informations'] = new function(){
|
||||
else
|
||||
{
|
||||
$('li.tab-row a[id*="VirtualProduct"]').show().click();
|
||||
$('#is_virtual').val(1);
|
||||
|
||||
tabs_manager.onLoad('VirtualProduct', function(){
|
||||
$('#is_virtual_good').attr('checked', true);
|
||||
$('#virtual_good').show();
|
||||
$('#is_virtual').val(1);
|
||||
});
|
||||
|
||||
tabs_manager.onLoad('Quantities', function(){
|
||||
|
||||
Reference in New Issue
Block a user