I have a similar issue with adding a php poll.
Though I would be able to just insert the code in the poweredby tpl file and wala...nope not happing tried wrapping it with literal tags and it still does not show up.
This is the code I'm trying to get to show up...
<?php include_once($MPinc=(str_repeat('../',substr_count(substr($_SERVER['PHP_SELF'],1),'/')).'store/poll/poll.php'));displayPoll(1); ?>
As most of us know searching these forums is becoming a time sink

So If someone could point us in the right direction on how to add php code to smarty it would be much appreciated
***edit***
Time sink over....
http://forum.x-cart.com/viewtopic.php?p=42984&highlight=#42984
This may help