Makros Makros - 5 months ago 69
PHP Question

Enabling Prestashop webservices on module install

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?


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);