在模块安装上启用Prestashop webservices(Enabling Prestashop webservices on module install)
我正在尝试开发一个模块,通过webservices同步2个或更多Prestashop商店。 由于这个模块生成器 ,我已经制作了一个模块骨架,但是现在,第一步让我想到了这个问题:
如何在我的自定义模块安装上自动切换webservices?
I'm trying to develop a module to sync 2 or more Prestashop stores via webservices. I've made a module skeleton thanks to this module generator but now, first steps take me to the question:
How can I auto-switch on webservices on my custom module installation?
最满意答案
要在PrestaShop中自动切换Web服务,我认为您只需要在模块install()函数中更新PS_WEBSERVICE值,就像这样
Configuration::updateValue('PS_WEBSERVICE', true);
To autoswitch web services in PrestaShop I think you just need in your module install() function to update PS_WEBSERVICE value like this
Configuration::updateValue('PS_WEBSERVICE', true);
更多推荐
发布评论