I am trying to insert a new block above "Grand Total" on the checkout page, but I am really struggling so after a bit of looking I found this to help but i am still not having any success.
I first tried creating (what I thought was) the correct xml in a mymodule.xml file, when that did not work I tried adding that code to local.xml, that hasn't worked either. I know all xml files are loaded then local.xml is loaded again last in order to override previously made definitions but that leaves me wondering, can you only added new blocks to the core using local.xml or can I do it with mymodule.xml. If I can add blocks using mymodule.xml file, do I only use local.xml only when I want to move/remove/override core blocks?
I am trying to add a custom block before checkout.cart.totals
(location: checkout.xml). I have tried
<reference name="checkout.cart">
<action method="insert"><blockName>mdeprojects.remainder</blockName></action>
</reference>
<reference name="checkout.cart">
<checkout_cart_index>
<action method="insert"><blockName>mdeprojects.remainder</blockName></action>
</checkout_cart_index>
</reference>
<checkout_cart_index>
<action method="insert"><blockName>mdeprojects.remainder</blockName></action>
</checkout_cart_index>
what am I doing wrong?
===EDIT===
Now I'm getting more confused to confirm I was targeting the block I added
<checkout_cart_index>
<remove name="checkout.cart.totals" />
</checkout_cart_index>
this worked
I then tried (for test purposes) to add the block directly to checkout.xml and my template file was not rendered.