ok brilliant. also on the same subject of emails.
if I am using the option to use my own email template as in when tick the checkbox for Manage email body from file
I can obviously use posts or sessions in my own email template so that's fine. however what about ecart objects
for example I have a paypal-success.php which stores an order in the database thats fine, and when it sends out an order I get an error:
Total Order Cost: £
Fatal error: Call to a member function GrandTotal() on a non-object in /homepages/36/d512037306/htdocs/createimpressions/projects/dinky/webassist/email/templates/order-invoice.php on line 9
and line 9 for this file reads:
<strong>Total Order Cost:</strong> £<?php echo $DinkyCart->GrandTotal(); ?>
I assumed that ecart was all sessions
in my main paypal-success.php file I do have the include files:
<?php
//WA eCart Include
require_once("WA_eCart/DinkyCart_PHP.php");
?>
<?php require_once( "WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php"); ?>
<?php
//WA eCart Include
require_once("WA_eCart/WA_eCart_Database_PHP.php");
?>
<?php
$DinkyCart->GetContent();
?>
would I need to add these include files in my actual email template?
Chris