diff --git a/admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl index 8de8a54a7..5436aeaeb 100644 --- a/admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes_groups/helpers/form/form.tpl @@ -25,9 +25,9 @@ {extends file="helpers/form/form.tpl"} -{block name="field"} +{block name="input_row"} {$smarty.block.parent} {if $input.name == 'public_name'} {hook h="displayAttributeGroupForm" id_attribute_group=$form_id} {/if} -{/block} +{/block} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl index f5c70a9d8..8b3d51b4b 100644 --- a/admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/feature_value/helpers/form/form.tpl @@ -24,9 +24,9 @@ *} {extends file="helpers/form/form.tpl"} -{block name="field"} +{block name="input_row"} {$smarty.block.parent} {if $input.name == 'id_feature'} {hook h="displayFeatureValueForm" id_feature_value=$feature_value->id} {/if} -{/block} +{/block} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl index 9a34b5b0e..0c940227a 100644 --- a/admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/features/helpers/form/form.tpl @@ -24,7 +24,7 @@ *} {extends file="helpers/form/form.tpl"} -{block name="field"} +{block name="input_row"} {$smarty.block.parent} {if $input.name == 'name'} {hook h="displayFeatureForm" id_feature=$form_id} diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index d7083d218..48e79eb03 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -41,6 +41,7 @@ class BlockLayered extends Module $this->version = '1.8.9'; $this->author = 'PrestaShop'; $this->need_instance = 0; + $this->bootstrap = true; parent::__construct(); @@ -565,13 +566,8 @@ class BlockLayered extends Module public function hookFeatureValueForm($params) { $languages = Language::getLanguages(false); - $default_form_language = (int)(Configuration::get('PS_LANG_DEFAULT')); + $default_form_language = (int)$this->context->controller->default_form_language; $lang_value = array(); - - $return = ' - '; $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS( 'SELECT url_name, meta_title, id_lang FROM '._DB_PREFIX_.'layered_indexable_feature_value_lang_value @@ -579,39 +575,74 @@ class BlockLayered extends Module if ($result) foreach ($result as $data) $lang_value[$data['id_lang']] = array('url_name' => $data['url_name'], 'meta_title' => $data['meta_title']); - $return .= '
- -'.$this->l('Specific URL format in block layered generation').'
-'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
+'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
-'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
+'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
-'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
+'.$this->l('Specific format for meta title').'
+'.$this->l('Use this attribute in URL generated by the layered navigation module').'
'.$this->l('Use this attribute in URL generated by the layered navigation module').'
'.$this->l('Specific URL format in block layered generation').'
-'.$this->l('Specific format for meta title').'
+'.$this->l('Specific URL format in block layered generation').'
+'.$this->l('Specific format for meta title').'
+'.$this->l('Use this attribute in URL generated by the layered navigation module').'
'.$this->l('Use this attribute in URL generated by the layered navigation module').'