mattrobo Posted October 16, 2009 Share Posted October 16, 2009 All, I am integrating an external affiliate program that will be run (for the moment) in complete.tpl. (not perfect because of people who pay by direct debit!) anyway- The information I need to send to the affiliate program requires me to get the info from the database as it is not available at that stage of the transaction. When I embed my php into the complete.tpl it DOES NOT RUN.. not even a basic echo 'ssss'; etc I cut the script into a unique file called sat test.php and it runs perfectly... How can I run php in a tpl file? what am I missing? even a basic does not work. I have put some html either side and thats there fine! <?php echo ' test'; ?> Thanks Matthew 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted October 16, 2009 Share Posted October 16, 2009 PHP in Smarty: {php}echo 'try this!'; {/php} 0 Quote Link to comment Share on other sites More sharing options...
mattrobo Posted October 16, 2009 Author Share Posted October 16, 2009 HerrZ, you are a life saver - actually a hair and health saver. both those would have suffered for many more hours before I got smart enough to look for smarty . All working! Thanks Matthew 0 Quote Link to comment Share on other sites More sharing options...
mattrobo Posted October 16, 2009 Author Share Posted October 16, 2009 now to find a better place to put this affiliate link because complete.tpl is not good enough for me as 50% dont pay straight away but by bank transfer...... grrr... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.