John Zaw Posted January 18, 2023 Share Posted January 18, 2023 I want to check the data information and I am wondering how to var_dump in prestashop. And also how to do writing logs to a file and checking it later? Link to comment Share on other sites More sharing options...
DARKF3D3 Posted March 8, 2023 Share Posted March 8, 2023 Into tpl files you can use {$var|@var_dump} 2 Link to comment Share on other sites More sharing options...
VBLED Posted November 16, 2023 Share Posted November 16, 2023 I insert this code {$var|@var_dump} to delivery-slip.tpl, but how I can see these variables? I don't know where I can see these Link to comment Share on other sites More sharing options...
dnk.hack Posted November 16, 2023 Share Posted November 16, 2023 Hello, for Smarty controllers use dump($you_variable) in this case you will see dump in the Symfony console. Also is a very convenient method for TPL {dump($you_variable)}. You will see the dump as a structured block. Link to comment Share on other sites More sharing options...
ventura Posted November 17, 2023 Share Posted November 17, 2023 PrestaShopLogger::addLog("Response: " . json_encode($params, JSON_PRETTY_PRINT), 1); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now