productDownload->id || $product->productDownload->active}style="display:none"{/if} >
-
-
-
-
-
-
- {if $download_product_file_missing}
-
- {$download_product_file_missing} :
- {$smarty.const._PS_DOWNLOAD_DIR_}/{$product->productDownload->filename}
-
- {/if}
-
-
- {if !$download_dir_writable}
-
- {l s='Your download repository is not writable.'}
- {$smarty.const._PS_DOWNLOAD_DIR_}
-
- {/if}
- {* Don't display file form if the product has combinations *}
- {if empty($product->cache_default_attribute)}
- {if $product->productDownload->id}
-
+
+
+
{l s='Virtual Product (services, booking or downloadable products)'}
+
+ is_virtual && $product->productDownload->active}checked="checked"{/if} />
+
+
+
productDownload->id || $product->productDownload->active}style="display:none"{/if} class="form-group">
+
+
+ {if $download_product_file_missing}
+
{/if}
-
+
-
\ No newline at end of file
diff --git a/js/admin-products.js b/js/admin-products.js
index 2a5bfff9a..a167b4201 100644
--- a/js/admin-products.js
+++ b/js/admin-products.js
@@ -1332,33 +1332,20 @@ product_tabs['VirtualProduct'] = new function(){
if ($('#is_virtual_good').prop('checked'))
{
$('#virtual_good').show();
- $('#virtual_good_more').show();
}
$('.is_virtual_good').hide();
if ( $('input[name=is_virtual_file]:checked').val() == 1)
- {
- $('#virtual_good_more').show();
$('#is_virtual_file_product').show();
- }
else
- {
- $('#virtual_good_more').hide();
$('#is_virtual_file_product').hide();
- }
$('input[name=is_virtual_file]').live('change', function(e) {
- if($(this).val() == '1')
- {
- $('#virtual_good_more').show();
+ if($(this).prop('checked'))
$('#is_virtual_file_product').show();
- }
else
- {
- $('#virtual_good_more').hide();
$('#is_virtual_file_product').hide();
- }
});
// Bind file deletion
diff --git a/js/admin_carrier_wizard.js b/js/admin_carrier_wizard.js
index de4a24403..081cd7eff 100644
--- a/js/admin_carrier_wizard.js
+++ b/js/admin_carrier_wizard.js
@@ -31,6 +31,33 @@ $(document).ready(function() {
if (parseInt($('input[name="is_free"]:checked').val()))
is_freeClick($('input[name="is_free"]:checked'));
displayRangeType();
+
+ $('#attachement_fileselectbutton').click(function(e) {
+ $('#carrier_logo_input').trigger('click');
+ });
+
+ $('#attachement_filename').click(function(e) {
+ $('#carrier_logo_input').trigger('click');
+ });
+
+ $('#carrier_logo_input').change(function(e) {
+ if ($(this)[0].files !== undefined)
+ {
+ var files = $(this)[0].files;
+ var name = '';
+
+ $.each(files, function(index, value) {
+ name += value.name+', ';
+ });
+
+ $('#attachement_filename').val(name.slice(0, -2));
+ }
+ else // Internet Explorer 9 Compatibility
+ {
+ var name = $(this).val().split(/[\\/]/);
+ $('#attachement_filename').val(name[name.length-1]);
+ }
+ });
});
function initCarrierWizard()
diff --git a/modules/blockcms/blockcms.php b/modules/blockcms/blockcms.php
index 0c1a8abc4..82e232210 100755
--- a/modules/blockcms/blockcms.php
+++ b/modules/blockcms/blockcms.php
@@ -39,7 +39,7 @@ class BlockCms extends Module
{
$this->name = 'blockcms';
$this->tab = 'front_office_features';
- $this->version = '1.3';
+ $this->version = '1.4';
$this->author = 'PrestaShop';
$this->need_instance = 0;
@@ -61,6 +61,7 @@ class BlockCms extends Module
|| !$this->registerHook('actionObjectCmsUpdateAfter')
|| !$this->registerHook('actionObjectCmsDeleteAfter')
|| !$this->registerHook('actionShopDataDuplication')
+ || !$this->registerHook('actionAdminStoresControllerUpdate_optionsAfter')
|| !BlockCMSModel::createTables()
|| !Configuration::updateValue('FOOTER_CMS', '')
|| !Configuration::updateValue('FOOTER_BLOCK_ACTIVATION', 1)
@@ -684,6 +685,12 @@ class BlockCms extends Module
return parent::getCacheId('blockcms|'.$name);
}
+ public function hookActionAdminStoresControllerUpdate_optionsAfter()
+ {
+ if (Tools::getIsset('PS_STORES_DISPLAY_FOOTER'))
+ $this->_clearCache('blockcms.tpl');
+ }
+
public function hookActionObjectCmsUpdateAfter()
{
$this->_clearCache('blockcms.tpl');
diff --git a/modules/blockcms/config.xml b/modules/blockcms/config.xml
index b8683e704..40900e5de 100755
--- a/modules/blockcms/config.xml
+++ b/modules/blockcms/config.xml
@@ -2,7 +2,7 @@
blockcms
-
+
diff --git a/modules/blockcms/upgrade/install-1.4.php b/modules/blockcms/upgrade/install-1.4.php
new file mode 100644
index 000000000..9702660d9
--- /dev/null
+++ b/modules/blockcms/upgrade/install-1.4.php
@@ -0,0 +1,9 @@
+registerHook('actionAdminStoresControllerUpdate_optionsAfter'));
+}
diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php
index 16289c36e..3ad83464f 100644
--- a/modules/blocklayered/blocklayered.php
+++ b/modules/blocklayered/blocklayered.php
@@ -346,7 +346,10 @@ class BlockLayered extends Module
'is_indexable' =>(bool)$is_indexable
));
- return $this->display(__FILE__, 'attribute_group_form.tpl');
+ if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE)
+ return $this->display(__FILE__, 'attribute_group_form_1.6.tpl');
+ else
+ return $this->display(__FILE__, 'attribute_group_form.tpl');
}
//ATTRIBUTES
@@ -421,8 +424,11 @@ class BlockLayered extends Module
'default_form_language' => (int)$this->context->controller->default_form_language,
'values' => $values
));
-
- return $this->display(__FILE__, 'attribute_form.tpl');
+
+ if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE)
+ return $this->display(__FILE__, 'attribute_form_1.6.tpl');
+ else
+ return $this->display(__FILE__, 'attribute_form.tpl');
}
//FEATURES
@@ -514,8 +520,11 @@ class BlockLayered extends Module
'values' => $values,
'is_indexable' =>(bool)$is_indexable
));
-
- return $this->display(__FILE__, 'feature_form.tpl');
+
+ if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE)
+ return $this->display(__FILE__, 'feature_form_1.6.tpl');
+ else
+ return $this->display(__FILE__, 'feature_form.tpl');
}
//FEATURES VALUE
@@ -591,8 +600,11 @@ class BlockLayered extends Module
'default_form_language' => (int)$this->context->controller->default_form_language,
'values' => $values
));
-
- return $this->display(__FILE__, 'feature_value_form.tpl');
+
+ if (version_compare(_PS_VERSION_, '1.6.0', '>=') === TRUE)
+ return $this->display(__FILE__, 'feature_value_form_1.6.tpl');
+ else
+ return $this->display(__FILE__, 'feature_value_form.tpl');
}
public function hookProductListAssign($params)
diff --git a/modules/blocklayered/views/templates/admin/add.tpl b/modules/blocklayered/views/templates/admin/add.tpl
index 2f0900d81..0fe0e3170 100644
--- a/modules/blocklayered/views/templates/admin/add.tpl
+++ b/modules/blocklayered/views/templates/admin/add.tpl
@@ -3,7 +3,6 @@