Jump to content

Edit History

rhythm

rhythm

Hey,

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. 

rhythm

rhythm

Hey,

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. 

×
×
  • Create New...