Makros Makros - 19 days ago 4x
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);