Prestashop provide to store configuration value. A configuration value contain only one value at the time. You can just update its.
with the configuration value we can set some variable example we we need to store some value which need to use in our module maximum time.
Configuration::updateValue('variable', 'your value');
By this you can set the value of variable=your value
now you can get this value by simple writing
$value_of_config= Configuration::get('variable');
in $value_of_config you get ‘your value’.
now you can use this any where to your modules
you can update in by using
Configuration::updateValue('variable', 'your value');
that’s means set and update can be done by updateValue().
Be the first to comment.