Timeline for getBlock('cart_sidebar') is null on Checkout_Cartcontroller override
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 10, 2017 at 7:59 | comment | added | Alex | Finally it worked, the only change made by me was including '<action method="addJs"><script>varien/product_options.js</script></action>' in the '<default>' handle of the local.xml, it seems that the handles of the catalog.xml that have it are not enough. Thanks for your help. | |
Apr 10, 2017 at 7:56 | vote | accept | Alex | ||
Apr 6, 2017 at 11:38 | comment | added | Alex | The 'Mage::app()->...' returns me undefined instead of 'null' | |
Apr 6, 2017 at 10:16 | comment | added | Jaimin Sutariya |
The last thing you can use is Mage::app()->getLayout()->createBlock('checkout/cart_sidebar')->setTemplate("checkout/cart/minicart/items.phtml")
|
|
Apr 6, 2017 at 10:03 | comment | added | Alex | Yes, it should work, but I still got 'null'... I see it must be a problem of definition. I have the cache disabled and I still delete the cache very often, so I'm sure it is not cache. | |
Apr 6, 2017 at 9:54 | comment | added | Jaimin Sutariya | Please review updated answer @Alex | |
Apr 6, 2017 at 9:53 | history | edited | Jaimin Sutariya | CC BY-SA 3.0 |
added 468 characters in body
|
Apr 6, 2017 at 9:40 | comment | added | Alex | I added the checkout.xml, at least the first part because it's too long | |
Apr 6, 2017 at 9:26 | comment | added | Jaimin Sutariya | If they are defined than there should not be any issue. can you add both blocks xml code to your question. | |
Apr 6, 2017 at 9:14 | comment | added | Jaimin Sutariya |
check with updated code. The issue is because the block with name cart_sidebar or minicart_content is not defined in your layout.
|
|
Apr 6, 2017 at 9:13 | history | edited | Jaimin Sutariya | CC BY-SA 3.0 |
added 59 characters in body
|
Apr 6, 2017 at 9:06 | comment | added | Alex | it's still null | |
Apr 6, 2017 at 9:01 | history | answered | Jaimin Sutariya | CC BY-SA 3.0 |