close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ecart Display Manager within Email

Thread began 1/16/2012 7:27 am by davidct823434665 | Last modified 1/17/2012 12:42 pm by davidct823434665 | 1541 views | 3 replies

davidct823434665

Ecart Display Manager within Email

Hi there my name is David and I have a copy of Webassist's universal email and Ecart. The display manager for Ecart is currently working fine and what I wish to do is transfer the details (price, name etc...) into an email. Please note that there will be no payment taken on my site and the cart is mainly for layout and professionalism, I will respond to the emails and then acquire payment.

I am halfway as I have managed to trigger an email upon the checkout button being pressed, however the display manager is not present at all.

I have already attempted to attach a document with the email friendly display manager and have also set the form to have the action of this PHP script:

<?php
//WA eCart Include
require_once("WA_eCart/EPCart_PHP.php");
?>
<?php
$EPCart->GetContent();
?>
<?php require_once("WA_Universal_Email/Mail_for_Windows_PHP.php"); ?>
<?php
// WA eCart Update
if (isset($_POST["EPCart_Update_100"]) || isset($_POST["EPCart_Update_100_x"])) {
$EPCart->UpdateCart();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$EPCart->redirStr = $Redirect_redirStr;
}
$EPCart->cartAction = "Update";
}
?>
<?php
//WA eCart Check Out Update
if (isset($_POST["EPCart_Checkout_1"]) || isset($_POST["EPCart_Checkout_1_x"])) {
$EPCart->UpdateCart();
$EPCart->cartAction = "CheckOutUpdate";
}
?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((isset($_POST["EPCart_Checkout"]))) {
//WA Universal Email object="Mail for Windows"
//Send Loop Once Per Entry
$RecipientEmail = "davidct823@hotmail.com";include("WA_Universal_Email/WAUE_quotation_1.php");

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST") && (strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"])===0 || strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"])>0)) {
//WA Universal Email object="Mail for Windows"
//Send Loop Once Per Entry
$RecipientEmail = "davidct823@hotmail.com";include("WA_Universal_Email/WAUE_quotation_2.php");

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<?php
// WA eCart Continue Shopping
if (isset($_POST["EPCart_Continue_100"]) || isset($_POST["EPCart_Continue_100_x"])) {
$Redirect_redirStr="";
if (true && isset($_SESSION['WAEC_ContinueRedirect'])) {
$Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
}
if ($Redirect_redirStr != "") {
$EPCart->redirStr = $Redirect_redirStr;
}
$EPCart->cartAction = "Continue";
}
?>
<?php
// WA eCart Clear Cart
if (isset($_POST["EPCart_Clear_100"]) || isset($_POST["EPCart_Clear_100_x"])) {
$EPCart->ClearCart();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$EPCart->redirStr = $Redirect_redirStr;
}
$EPCart->cartAction = "ClearCart";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["EPCart_Checkout"]) || isset($_POST["EPCart_Checkout_x"])) {
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") < 0) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$EPCart->redirStr = $Redirect_redirStr;
}
$EPCart->cartAction = "Checkout";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["EPCart_Checkout_1"]) || isset($_POST["EPCart_Checkout_1_x"])) {
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") === false) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$EPCart->redirStr = $Redirect_redirStr;
}
$EPCart->cartAction = "Checkout";
}
?>
<?php
// WA eCart Redirect
if ($EPCart->redirStr != "") {
header("Location: ".$EPCart->redirStr);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/waue html body" codeOutsideHTMLIsLocked="false" --><head><!-- InstanceBeginEditable name="emailhead" --><!-- InstanceEndEditable --></head><body><!-- InstanceBeginEditable name="emailbody" -->
<div class="eC_Simple_Slate_Tahoma" style="font-family:Tahoma, 'Trebuchet MS', Arial, sans-serif; /* Font Style */ font-size:x-small; color: #2C2D2E; /* Neutral_Black */ width:514px;">
<?php
//WA eCart Show If Start
if (!$EPCart->IsEmpty()) {
?>
<h2 style="color:#50516B; /* Accent_1 */ margin-bottom:7px; font-size:medium;">Your Shopping Cart</h2>
<table width="100%" style=" border-right:solid 1px #CCD0D6; /* Neutral_Medium */ border-left:solid 1px #CCD0D6; /* Neutral_Medium */ border-bottom:solid 1px #CCD0D6; /* Neutral_Medium */ margin-bottom:14px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<th style="padding:10px 14px 10px 7px; vertical-align:top; text-align:left; background-color:#50516B; /* Accent1 */ color:#FFFFFF; /* Global_White */" text-align:left;>Name</th>
<th style="padding:10px 14px 10px 7px; vertical-align:top; text-align:left; background-color:#50516B; /* Accent1 */ color:#FFFFFF; /* Global_White */" text-align:left;>Description</th>
<th style="padding:10px 14px 10px 7px; vertical-align:top; text-align:right; background-color:#50516B; /* Accent1 */ color:#FFFFFF; /* Global_White */" text-align:right;>Price</th>
<th style="padding:10px 14px 10px 7px; vertical-align:top; text-align:right; background-color:#50516B; /* Accent1 */ color:#FFFFFF; /* Global_White */" text-align:right;>Total</th>
</tr>
<?php
while (!$EPCart->EOF()) {
?>
<tr>
<td style="padding:10px 14px 10px 7px; vertical-align:top;" ><?php echo $EPCart->DisplayInfo("Name"); ?></td>
<td style="padding:10px 14px 10px 7px; vertical-align:top;" ><?php echo $EPCart->DisplayInfo("Description"); ?></td>
<td style="padding:10px 14px 10px 7px; vertical-align:top; text-align:right;" ><?php echo WA_eCart_DisplayMoney($EPCart, $EPCart->DisplayInfo("Price")); ?></td>
<td style="padding:10px 14px 10px 7px; vertical-align:top; text-align:right;" ><?php echo WA_eCart_DisplayMoney($EPCart, $EPCart->DisplayInfo("TotalPrice")); ?></td>
</tr>
<?php
$EPCart->MoveNext();
}
$EPCart->MoveFirst();
?>
</table>
<h3 style="color:#50516B; /* Accent1 */ margin:0 0 4px 0; font-size:small;">Order Summary</h3>
<div >
<table width="100%" style=" border:solid 1px #CCD0D6; /* Neutral_Medium */ border-top:solid 0px #CCD0D6; /* Neutral_Medium */" border="0" cellpadding="0" cellspacing="0" >
<?php
//WA eCart Merchandizing Show Start
//ecart="EPCart"
if ($EPCart->GetDiscounts() > 0 || $EPCart->GetCharges() > 0 || $EPCart->GetShipping() > 0 || $EPCart->GetTax() > 0) {
?>
<tr>
<td style="text-align:left; font-weight:bold; color:#0C0B12; /* Accent4 */ padding: 10px 5px 10px 7px; border-top:solid 1px #CCD0D6; /* Neutral_Medium */" >Sub-total</td>
<td style=" text-align:right; padding: 10px 14px 10px 5px; border-top:solid 1px #CCD0D6; /* Neutral_Medium */"><?php echo WA_eCart_DisplayMoney($EPCart, $EPCart->TotalColumn("TotalPrice")); ?></td>
</tr>
<?php
//WA eCart Merchandizing Show End
//ecart="EPCart"
}
?>
<?php
//WA eCart Merchandizing Show Start
//ecart="EPCart"
if ($EPCart->GetDiscounts() > 0) {
?>
<?php
//WA eCart Merchandizing Show End
//ecart="EPCart"
}
?>
<?php
//WA eCart Merchandizing Show Start
//ecart="EPCart"
if ($EPCart->GetCharges() > 0) {
?>
<?php
//WA eCart Merchandizing Show End
//ecart="EPCart"
}
?>
<?php
//WA eCart Merchandizing Show Start
//ecart="EPCart"
if ($EPCart->GetShipping() > 0) {
?>
<?php
//WA eCart Merchandizing Show End
//ecart="EPCart"
}
?>
<?php
//WA eCart Merchandizing Show Start
//ecart="EPCart"
if ($EPCart->GetTax() > 0) {
?>
<?php
//WA eCart Merchandizing Show End
//ecart="EPCart"
}
?>
<tr style="background-color:#D8DCBF; /* Accent11 */" >
<td style="font-weight:bold; text-align:left; font-weight:bold; color:#0C0B12; /* Accent4 */ padding: 10px 5px 10px 7px; border-top:solid 1px #CCD0D6; /* Neutral_Medium */" >Total:</td>
<td style="font-weight:bold; text-align:right; padding: 10px 14px 10px 5px; border-top:solid 1px #CCD0D6; /* Neutral_Medium */"><?php echo WA_eCart_DisplayMoney($EPCart, $EPCart->GrandTotal()); ?></td>
</tr>
</table>
</div>
<?php
//WA eCart Show If Middle
}
else {
?><table><tr><td>The cart is empty</td></tr></table>
<?php
//WA eCart Show If End
}
?>
</div>
<!-- InstanceEndEditable -->
</body><!-- InstanceEnd --></html>

Any help would be much appreciated as I am very stuck on this.

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...