Back to Top

setting configuration value in prestashop

Updated 2 April 2013

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’.

Searching for an experienced
Prestashop Company ?
Find out More

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

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home