close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/46/6

Thread began 10/18/2010 3:17 pm by mdsayeed_u394092 | Last modified 10/19/2010 12:36 pm by Jason Byrnes | 4500 views | 10 replies |

mdsayeed_u394092

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/46/6

I got this error

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/waue_checkout_success_1.php on line 103

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/waue_checkout_success_1.php:103) in /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/waue_checkout_success_1.php:103) in /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/waue_checkout_success_1.php:103) in /home/content/46/6321846/html/BeautyOnlinestore/checkout_success.php on line 91

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/46/6321846/html/BeautyOnlinestore/webassist/email/waue_checkout_success_1.php:103) in /home/content/46/6321846/html/BeautyOnlinestore/checkout_success.php on line 91


Please help me

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the waue_checkout_success_1.php page so i can examine the code.

Sign in to reply to this post

mdsayeed_u394092

not able to attached rar file format

I am not able to upload file in rar format

please check code here

"<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "".((isset($_POST["email"]))?$_POST["email"]:"") ."";
$MailSubject = "Online purchased order-details";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("","","","","","");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}

//Additional Headers

//Attachment Entries

//BCC Entries

//CC Entries

//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);

//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");

//Start Mail Body
$MailBody = $MailBody . "<html><head><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --></head><body><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" -->\r\n";
$MailBody = $MailBody . "<p>\r\n";
$MailBody = $MailBody . " <!-- In\"+\"stanceBeginEditable name=\"emailbody\" -->\r\n";
$MailBody = $MailBody . "Session::";
$MailBody = $MailBody . session_id();
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<!-- In\"+\"stanceEndEditable -->\r\n";
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Product name: ";
$MailBody = $MailBody . $eCart1->DisplayInfo("Name");
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Quanitituy:\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . $eCart1->DisplayInfo("Quantity");
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Price:\r\n";
$MailBody = $MailBody . $eCart1->DisplayInfo("Price");
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Color:\r\n";
$MailBody = $MailBody . $eCart1->DisplayInfo("Color");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Size:\r\n";
$MailBody = $MailBody . $eCart1->DisplayInfo("Size");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Total Price:\r\n";
$MailBody = $MailBody . $eCart1->DisplayInfo("TotalPrice");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<br />\r\n";
$MailBody = $MailBody . "Grand Total:\r\n";
$MailBody = $MailBody . $eCart1->GrandTotal();
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Billing informaiton:</p>\r\n";
$MailBody = $MailBody . "<p>First Name ";
$MailBody = $MailBody . ((isset($_POST["firstname"]))?$_POST["firstname"]:"");
$MailBody = $MailBody . " </p>\r\n";
$MailBody = $MailBody . "<p>Last Name ";
$MailBody = $MailBody . ((isset($_POST["lastname"]))?$_POST["lastname"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Email";
$MailBody = $MailBody . ((isset($_POST["email"]))?$_POST["email"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Phone:";
$MailBody = $MailBody . ((isset($_POST["phone"]))?$_POST["phone"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Street1";
$MailBody = $MailBody . ((isset($_POST["street1"]))?$_POST["street1"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Street 2 ";
$MailBody = $MailBody . ((isset($_POST["street2"]))?$_POST["street2"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p> City:";
$MailBody = $MailBody . ((isset($_POST["city"]))?$_POST["city"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>State:";
$MailBody = $MailBody . ((isset($_POST["state_province"]))?$_POST["state_province"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Postal code:";
$MailBody = $MailBody . ((isset($_POST["postcode"]))?$_POST["postcode"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<p>Country:";
$MailBody = $MailBody . ((isset($_POST["country"]))?$_POST["country"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "<!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\"+\\"stanceEndEditable --></body><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\"+\\"stanceEnd --></html>";
//End Mail Body

$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody,"waue_checkout_success_1");

if (isset($_SESSION["waue_checkout_success_1_Status"])) {
$MailLogBindings = new WAUE_Log_Bindings();
//Start Log Bindings
//Success Or Failure
$MailLogBindings->SuccessOrFailure->ToDo = "none";
$MailLogBindings->SuccessOrFailure->Connection = "";
$MailLogBindings->SuccessOrFailure->TableName = "";
$MailLogBindings->SuccessOrFailure->EmailColumn = "";
$MailLogBindings->SuccessOrFailure->ColumnList = array();
$MailLogBindings->SuccessOrFailure->TypeList = array();
$MailLogBindings->SuccessOrFailure->ValueList = array();
//Success Only
$MailLogBindings->Success->ToDo = "none";
$MailLogBindings->Success->Connection = "";
$MailLogBindings->Success->TableName = "";
$MailLogBindings->Success->EmailColumn = "";
$MailLogBindings->Success->ColumnList = array();
$MailLogBindings->Success->TypeList = array();
$MailLogBindings->Success->ValueList = array();
//Failure Only
$MailLogBindings->Failure->ToDo = "none";
$MailLogBindings->Failure->Connection = "";
$MailLogBindings->Failure->TableName = "";
$MailLogBindings->Failure->EmailColumn = "";
$MailLogBindings->Failure->ColumnList = array();
$MailLogBindings->Failure->TypeList = array();
$MailLogBindings->Failure->ValueList = array();
//End Log Bindings
$MailLogBindings->SuccessOrFailure->MailRef = "waue_checkout_success_1";
$MailLogBindings->Success->MailRef = "waue_checkout_success_1";
$MailLogBindings->Failure->MailRef = "waue_checkout_success_1";
$MailLogBindings->processLog(($_SESSION["waue_checkout_success_1_Status"] == "Failure"));
}
$WA_MailObject = null;
?>"

Sign in to reply to this post

Jason ByrnesWebAssist

you can upload the file in a zip archive.


try making the following changes.

change:

php:
$MailBody = $MailBody . "<html><head><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceBegin template=\"/Templates/waue html body\" codeOutsideHTMLIsLocked=\"false\" --><!-- In\"+\"stanceBeginEditable name=\"emailhead\" --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --><!-- In\"+\"stanceEndEditable --></head><body><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" --><!-- In\"+\"stanceBeginEditable name=\"emailbody\" -->\r\n";




to:

php:
$MailBody = $MailBody . "<html><head>\r\n";



delete this line:

php:
$MailBody = $MailBody . " <!-- In\"+\"stanceBeginEditable name=\"emailbody\" -->\r\n";



and this line:

php:
$MailBody = $MailBody . "<!-- In\"+\"stanceEndEditable -->\r\n";



and change:

php:
$MailBody = $MailBody . "<!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEndEditable --><!-- In\\"+\\"stanceEndEditable --></body><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\\\\\\\\"+\\\\\\\\\"stanceEnd --><!-- In\\"+\\"stanceEnd --></html>";



to:

php:
$MailBody = $MailBody . "</body></html>";
Sign in to reply to this post

mdsayeed_u394092

Ok error removed

I made changes now email working fine but still it is not showing billing information details, I bind billing information variables from server behaviour panel


Billing information not showing on confirmation email

Sign in to reply to this post

Jason ByrnesWebAssist

the checkout success page most likely wont have any thing posted to it.


the confirm page should be storing the checkout information in session variables, use the session variables instead of form elements.

Sign in to reply to this post

mdsayeed_u394092

session variables not getting display

I tried to add session variables but did not find in binding panel

Sign in to reply to this post

Jason ByrnesWebAssist

did you create the checkout pages using the eCart checkout wizard?

look on the confirm page, are there set session value behaviors on that page?

If not, you will need to add them.

on the server behaviors panel, click the plus button. Select eCart -> General -> Set Session Value.

Set the trigger to any form post.

for the value, click the lightning bolt and select one of the shipping form elements. Set the name to use the same name as the form element.

once the confirm page is set to create the session variables, you should use those in the email.

Sign in to reply to this post

mdsayeed_u394092

I have created session variable but still not information passing to email

I followed instructions give by you, but still billing information not passing to email, I created firstname session variable and added form element(firstname) but this is not getting displayed in an email

Sign in to reply to this post

mdsayeed_u394092

emails and code details

Email
"Session::711c56okhh1g5to0vu4mvt4557
Product name: K5
Quanitituy: 1
Price: 595
Color:
Size:
Total Price: 595
Grand Total: 595.00

Billing informaiton:

First Name

Last Name

Email

Phone:
Country:"\

Attached Files
email.txt
Sign in to reply to this post
loading

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