close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

universal email

Thread began 4/15/2010 10:53 pm by david331670 | Last modified 4/20/2010 11:08 am by Jason Byrnes | 1016 views | 7 replies |

david331670

universal email

problem with my online shopping cart.
When I confirm details and submit to paypal, the purchase is completed, UE is to send email of details. However I get a syntax error from the WAUE_confirm_7.php file. Error reads "Parse error: syntax error, unexpected '}' in /usr/home/spect7/www/htdocs/WA_Universal_Email/WAUE_confirm_7.php on line 205"
Lines 204 to 209 are:

//WA eCart Show If Middle
} -(this is row 205)
else {
$MailBody = $MailBody . "<table><tr><td>The cart is empty</td></tr></table>";
//WA eCart Show If End
}

This syntax error stops the success page from being sent or loaded and the user doesnt know if the transaction has gone thru.

I have recreated this file a number of times and I still get the same error.
I have removed the offending bracket but get another error.
I have attached the WAUE_confirm.php file zipd
This is causing many problems at the moment
Can you please help
Thank you.

Attached Files
WAUE_confirm_7.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 61 - 62:

php:
$MailBody = $MailBody . "                \r\n";

$MailBody = $MailBody . "                    <td style=\"padding:10px 7px 10px 7px; vertical-align:top; \">\r\n";



to:

php:
$MailBody = $MailBody . "                \r\n";

while (!$Spectrum_online->EOF())      {
$MailBody = $MailBody . "                    <td style=\"padding:10px 7px 10px 7px; vertical-align:top; \">\r\n";
Sign in to reply to this post

david331670

universal email

I have changed the item as shown
I now have another error

Parse error: syntax error, unexpected T_VARIABLE in /usr/home/spect7/www/htdocs/WA_Universal_Email/WAUE_confirm_7.php on line 61

still does not work.

Sign in to reply to this post

david331670

universal email

I have updated to universal email 4
I have recreated all the email and changed all the links to the newly generated folder and files. It has taken me most of the day but I now get a successful transaction, however the email sent is a "0" That all, just a "0"
I have set up the pages as before ( all this used to work before I updated to ecart 5)
I get the correct to and from email, and it sends but the content is "0"
The source code of the email has
"--WAMULTIBREAKWA
Content-Type: text/plain
Content-Transfer-Encoding: 8bit"
The mail_php.php file has these in the source code.
copy zpd The body format is very similar to the older file fron UEVer3, I dont know if it not not correct but I dont know how to edit the file the files to include the html body.
Can you help again please.

Regards David

Attached Files
Copy of mail_php.php.zip
Sign in to reply to this post

david331670

Ver 4 UE

I have managed to fix the previous problems. I gleaned enough from other support items and a bit of trial and error.
However whenever I try to edit the html I need to go and remove all the offending code all over again. Not happy. I can only assume it is was for a purpose for all this extra stuff (less is more from my perspective and why you need to remove it to enable it to work is puzzeling) and I await the bug fix.

So the email now works sending the order by email from the confirm .php page, it however does not include the order number in the email but it does in the success.php page.
I assume the email is sent as soon as clicking on posting or clicking the "checkout button" on the confirm.php page.
I am not sure when the order number is retrieved but I think the email is sent prior to this?? and as such does not have an order number yet.
How can I get the order number to be posted with the email??
You continued help id appreciated. I cant help my sarcasm though, it slips out every so often.

Regards
David

Sign in to reply to this post

Jason ByrnesWebAssist

the order number is generated by the store order summary server behavior. The Universal Email Code must be after the store order summary code for the order number to appear in the email, please send a copy of your page so I can examine the code.

Sign in to reply to this post

david331670

UE

My guess would be to place the:

<?php require_once("webassist/email/mail_php.php"); ?>
<?php require_once("webassist/email/mailformatting_php.php"); ?>
<?php
if (!isset($_SESSION))session_start();
.............
$_SESSION[$EmailRef."_Total"] = 0;
$_SESSION[$EmailRef."_Index"] = 0;
$_SESSION[$EmailRef."_Remaining"] = 0;
session_commit();
session_start();
if ($GoToPage!="") {
header("Location: ".$GoToPage);
}
}
?>
After line 805, but not sure if inside table or outside table but inside form.
Just a guess but from what you said the only place I can think of.
Thanks
David

Attached Files
Copy No Change of confirm.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the universal email code is lines 241 - 328


the Store Order Summary code block is lines 329 - 389


The universal Email code block needs to be moved to the end of line 389 so it is after the store order summary code block

Sign in to reply to this post

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