close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multiple email sending with unique content

Thread began 7/29/2014 5:10 am by Christopher West | Last modified 8/12/2014 1:03 pm by Christopher West | 2615 views | 10 replies

Christopher WestCommunity Expert

Hmm I did but now I get a different error:
Fatal error: Call to a member function GetContent() on a non-object in /homepages/36/d512037306/htdocs/createimpressions/projects/dinky/webassist/email/templates/order-invoice.php on line 12

here is the exact code of the email template file.

below the error occurs when it reaches: this snippet of code: <?php echo $DinkyCart->GrandTotal(); ?>

<?php require_once('../../../Connections/dinkydb.php'); ?>
<?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();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
.....html code here




<p style="font-family: Verdana, Geneva, sans-serif;font-size: 13px;line-height: 18px;font-weight: normal;color: #000000"><strong>Date of Order:</strong> <?php echo date('jS F Y - G:ia',strtotime($_SESSION['OrderDate'])); ?><br><br><strong>Order Number:</strong> <?php echo $_SESSION['OrderReference']; ?><br><strong>Name:</strong> <?php echo $_SESSION['BuyerSalutation']; ?> <?php echo $_SESSION['BuyerFirstName']; ?> <?php echo $_SESSION['BuyerLastName']; ?><br><strong>Telephone:</strong> <?php echo $_SESSION['BuyerPhone']; ?><br><strong>Email:</strong> <?php echo $_SESSION['BuyerEmail']; ?></p></td><td width="327" rowspan="3" align="right" valign="top"><p style="font-family: Verdana, Geneva, sans-serif;font-size: 13px;line-height: 18px;font-weight: normal;color: #000000"><strong>Total Order Cost:</strong> &pound;<?php echo $DinkyCart->GrandTotal(); ?><br><br><strong>Shipping:</strong> <?php echo $_SESSION['OrderShippingType']; ?><?php
if ("".$_SESSION['OrderDiscount'] ."" != "0") { // WebAssist Show If
?><br><strong>Discounts</strong> &pound;<?php echo $DinkyCart->GetDiscounts(); ?><?php
} // ("".$_SESSION['OrderDiscount'] ."" != "")
?><?php
if ("".$_SESSION['OrderVoucher'] ."" != "") { // WebAssist Show If
?><br><strong>Gift Voucher:</strong> <?php echo $_SESSION['OrderVoucherCode']; ?>
<?php
} // ("".$_SESSION['OrderVoucher'] ."" != "")
?><?php
if ("".$_SESSION['OrderCoupon'] ."" != "") { // WebAssist Show If
?><br><strong>Coupon:</strong> <?php echo $_SESSION['OrderCouponCode']; ?><?php
} // ("".$_SESSION['OrderCoupon'] ."" != "")
?> </p>




...html code here
</body>
</html>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...