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.
.png.022b5452a8f28f552bc9430097a16da2.png)