phpaddicted Posted May 29, 2019 Share Posted May 29, 2019 (edited) Hi, I am using Prestashop 1.6.1.0 I have one field in module for different language, postProcess function is like this : protected function postProcess() { $languages = Language::getLanguages(false); $values = array(); foreach ($languages as $lang) { $values['CUSTOMPAGECONFIGURATION_HEADING_TEXT'][$lang['id_lang']] = Tools::getValue('CUSTOMPAGECONFIGURATION_HEADING_TEXT_'.$lang['id_lang']); } Configuration::updateValue('CUSTOMPAGECONFIGURATION_HEADING_TEXT', $values['CUSTOMPAGECONFIGURATION_HEADING_TEXT'], true); return $this->displayConfirmation($this->l('The settings have been updated.')); } Problem : When I try to get this configuration variable value in a custom controller( path : /controllers/front/CustomPageController.php ) like shown below, It is not fetching any results: $headtxt = Configuration::get('CUSTOMPAGECONFIGURATION_HEADING_TEXT'); print_r($headtxt); exit; It is not printing anything.I want to fetch this value in a controller, But nothing. Can anyone please help me. Thanks in advance. Edited May 29, 2019 by phpaddicted (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now