Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Display contents of shoppingcart outside sidebar.phtml? 
 
ActusMedia
Member
 
Avatar
Total Posts:  46
Joined:  2007-11-01
Netherlands, Enschede
 

How would it be possible to move the display cart contents that is called inside sidebar.phtml to another page?

I created a seperate file top.cart.phtml that i placed inside /templates/pages/html/top.cart.phtml this file contains the shoppingcart display code and php from sidebar.phtml

I created a reference inside /layout/pages.xml
<block type="core/text_list" name="top.cart" as="topCart"/>

And call this with
<?php echo $this->getChildHtml('topCart') ?>

No errors, but no display of the shopping cart contents eiher.
What did we missed in the above?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top