I'm trying to add some some code on the checkout success page in the footer. Is there a conditional to check if its the checkout success page?
There's a layout called checkout_onepage_success. So basically you could do whatever you want there, such as:
<layout> <checkout_onepage_success> <reference name="footer"> <block type="cms/block" name="static-block"> <action method="setBlockId"><block_id>static-block</block_id></action> </block> </reference> </checkout_onepage_success> </layout>
Put something like that:
<?php echo $this->getChildHtml('static-block'); ?>
... to your footer and whenever you're on successful checkout page you'll see your static block.