AbanteCart Community
AbanteCart Development => Development Help Needed => Topic started by: yonghan on September 26, 2015, 03:21:15 AM
-
Hi admins, I'm trying to update language definition during extension upgrade process. I have put the update query in install.sql or install.php but it doesn't works. Are there additional code that I need to run in order to get the language definition changed? Thanks.
-
If you insert into database, do not forget to clear the cache for languages:
$this->cache->delete('language_definitions');
-
Thanks a lot. I will try it again.
-
It's not working eCommerce Core. It's not working. Is it correct to place the language definition update query in install.php for extension upgrade purpose? Thanks
-
For upgrade of extension you do not use install.php.
You need to provide upgrade XML property in extension config.xml file.
It is very similar to install property
It should be like this:
<upgrade>
<sql>[file name].sql</sql>
<trigger>[filen ame].php</trigger>
</upgrade>
We will add this to the manual soon
-
Thanks a lot abantecart. It works.