Jump to content

Detect if page it's called from a webservice


Recommended Posts

Hi!

We're using a webservice to load and get all the information from the Prestashop.

The developer of the application told us he needs to have the prestashop with the developer mode enabled.

We want to know if there it's a way to add a little if on defines.inc.php and add something like:

If ( $is_service ) define('_PS_MODE_DEV_', true);

That line would allow us to set the DEV mode for the webservice and normal mode for the rest of users/customers.

Regards,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...