close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Display order value on confirmation email

Thread began 5/24/2012 5:03 pm by bill3786 | Last modified 5/25/2012 11:22 am by Jason Byrnes | 405 views | 2 replies |


Display order value on confirmation email

Once a customer places an order the payment respose from worldpay generates a confirmation email which is sent to the customer. This email displays the details of the order from a recordset linked to the orders and orderdetails tables.

The email displays the order subtotal before tax from the orders table but the client also wants to display the order value (sum of the cost of all the products before any charges).

Can this be displayed on the email or does it need to be passed to worldpay as a custom variable.

Attached are the confirm page and the email body.

Attached Files
Sign in to reply to this post


I have now got the order value to display on the confirmation email.

Please could you confirm that this is the correct way to do this, it seems to work OK.

Added a custom variable to the confirm page to be sent to worldpay as below

<input type="hidden" name="MC_ordervalue" id="MC_ordervalue" value="<?php echo $eCart1->TotalColumn("TotalPrice") ?>" />

Then added
<?php echo (number_format((isset($_POST["MC_ordervalue"]))?$_POST["MC_ordervalue"]:"",2))?>

to display the order value to two decimal places on the confirmation email which is sent to the customer.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that looks correct.

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





Ease of use


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