I want to remove all default blocks from the template/layout file of my custom Magento module. Currently I have used individual removes like
<module_cart_index>
<remove name="head" />
<remove name="header" />
<remove name="footer" />
<remove name="right"/>
<remove name="left"/>
<remove name="cart_sidebar" />
<remove name="checkout.cart" />
<remove name="sale.reorder.sidebar" />
<reference name="content">
<block type="checkout/cart" name="cp.cart" template="module/cart.phtml" />
</reference>
</module_cart_index>
I want that the output from cart.phtml
should not contain any code from Magento but it should only contain the code written in it.
Right now when I run http://127.0.0.1/mag/index.php/module/cart/
it outputs a complete HTML
page with <html>, <head>, <body>
and all other tags. How can I remove these tags?
I want to get only the content written on module/cart.phtml
.
Is there any way to remove/prevent the default layout rendering in Magento?