setting configuration value in prestashop

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().

. . .


Add Your Comment

Be the first to comment.

Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again