Skip to main content

hikashop_config()->set

More
7 years 1 month ago - 7 years 1 month ago #310565 by erickb
-- HikaShop version -- : 4.2.1

Bonjour

J'ai cree des lignes dans hikashop_config toutes avec le prefixe custom_ pour récupérer des valeurs perso en plus
Je dois les mettre a jour de temps en temps
j'ai essaye

hikashop_config()->set('custom_lastid','test');
ou
$save = hikashop_config()->set('custom_lastid','test');
hikashop_config()->save($save);

mais ca ne marche pas

avez vous une fonction pour ca ?

sinon bien sur je vais faire $query = 'UPDATE `#__hikashop_config` ...';

merci
Last edit: 7 years 1 month ago by erickb.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #310573 by nicolas
Replied by nicolas on topic hikashop_config()->set
Bonjour,

La fonction save fonctionne très bien pour cela, mais elle ne s'utilise pas comme vous le faites.
Code:
$save = array('custom_lastid'=>'test'); hikashop_config()->save($save);
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #310595 by erickb
Replied by erickb on topic hikashop_config()->set
merci

Please Log in or Create an account to join the conversation.

Time to create page: 0.141 seconds
Powered by Kunena Forum