Jump to content

running PHP in TPLs?


mattrobo

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated