Jump to content

PrestaShop ignores POST JSON data


Recommended Posts


I am sending data to custom PHP file on Prestashop in JSON format, with the header Content-Type: application/json.

I tried Tools::getValue and _POST("MyVariable"), var_dump(_POST) shows nothing. If I select to send it as a form data, everything appears.

However, that's not the choice I have. I need to POST JSON data to PRESTASHOP and use it on my custom controller. 

Edited by rhythm (see edit history)
Link to comment
Share on other sites

  • 3 months later...

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...