Makros Makros - 1 year ago 155
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download