I am newbie in Prestashop module development so sorry if it is a fool question... I have been reading the docs but I haven't found what I am looking for so here I go,
I'd like to show a message on the screen (just for debugging purpose) with different context vars and so forth when actionCartSave. Something similar to "console.log()" or "alert()" in js.
Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON Parse error: Unrecognized token '<''
responseText:
< xmp style="text-align: left;" > message: < /xmp>
*{
"products": [...] *
I have already test this code:
public function hookActionCartSave( $params )
{
ppp('message: ');
return true;
}
...inside the module class definition but I am getting this error when I add a product to the cart:
I get this text in a different browser window.
So please, what is the best way to go?
Hope everything is clear. Thanks.