I'm investigate a compatibility problem with two m1 extensions.
For this I need a simply output of any information I can get about
I have tried following (single, not all together):
$cart = Mage::getSingleton('checkout/cart')->getQuote(); file_put_contents(__DIR__ . '/debug.txt', var_export($cart, 1), FILE_APPEND); file_put_contents(__DIR__ . '/debug.txt', print_r($cart, 1), FILE_APPEND); file_put_contents(__DIR__ . '/debug.txt', print_r(get_object_vars($cart), 1), FILE_APPEND);
But this leads to a crash while the execution (From the checkout submit (after clicking order), I fall back to the cart page). This is strange, because I use Information out of $cart, at the same place. Examp:
$checkoutCartQuote->getAllItems(); gives me the articles. Just 1 line above the
file_put_contents. So why does it just crash when I try var_export/print_r it?
But more important: How do I now get an Output like
print_r on this object? I need to see any properties with any values.
As I work on a shop of a client, I only have limited FTP access and no access to apache log. The exception Log of M1 didn't got new lines since I started working today.