Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

update language definition upon extension upgrade

Started by yonghan, September 26, 2015, 03:21:15 AM

Previous topic - Next topic

yonghan

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.

eCommerce Core

If you insert into database, do not forget to clear the cache for languages:

      $this->cache->delete('language_definitions');

"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett

yonghan


yonghan

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

abantecart

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
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

yonghan


Forum Rules Code of conduct
AbanteCart.com 2010 -