I have a payment method block. I saw that I can add custom HTML after the label in one page payment using the getMethodLabelAfterHtml method.
I want to be able to pass a HTML string to the setMethodLabelAfterHtml of my payment method.
<checkout_onepage_paymentmethod>
<remove name="right"/>
<remove name="left"/>
<block type="checkout/onepage_payment_methods" name="root" output="toHtml" template="checkout/onepage/payment/methods.phtml">
<block type="core/template" name="payment.method.cashondelivery">
<action method="setMethodLabelAfterHtml">
<block type="core/template" name="payment.method.cashondelivery.picto" output="toHtml" template="checkout/onepage/payment/cashondelivery.phtml" />
</action>
</block>
</block>
</checkout_onepage_paymentmethod>
I am unable to get the toHTML version of my template cashondelivery.phtml and pass it to the setMethodLabelAfterHtml action all only using the xml layout files.