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

Order Details DB Not Getting Correct 'Altered' Value

Thread began 8/10/2011 2:03 pm by codamedia | Last modified 8/11/2011 5:41 pm by codamedia | 856 views | 5 replies


Order Details DB Not Getting Correct 'Altered' Value

1: My order summary is dropped into a custom DB table called 'orders_ord'
2: My order details (each line item) is dropped into a custom DB table called 'orderdetail_ode'

In the 'orderdetail_ode' DB, I have a field called 'pprice_ode'. This field is suppose to store the value of a product - and it does. Sort of!
If the product has an option that increases or decreases that base value - the correct price is not stored. It stores the BASE PRICE, rather than the altered price.

1 lb of coffee = $10.00
1/2 lb of coffee = $5.00

The WA Email Receipts and cart confirmation pages all show the correct value of $5.00 for the 1/2lb. But the database is receiving the base price of $10.

On the Cart Confirm page (just before processing and emailing) and I can see it is displaying the proper "altered" price using this code:

<?php echo WA_eCart_DisplayMoney($eCart1, $eCart1->DisplayInfo("Price")); ?>

The code used to enter the value in the database looks like this:

$WA_table = "orderdetail_ode";
$WA_redirectURL = "";
$WA_indexField = "idord_ode";
$WA_fieldNamesStr = "idord_ode|pid_ode|pquantity_ode|pname_ode|pproperties_ode|pprice_ode";
$WA_fieldValuesStr = "".((isset($_POST["OrderNumber"]))?$_POST["OrderNumber"]:"") ."" . "|" . "".$eCart1->DisplayInfo("ID") ."" . "|" . "".$eCart1->DisplayInfo("Quantity") ."" . "|" . "".$eCart1->DisplayInfo("Name") ."" . "|" . "".$eCart1->DisplayInfo("sizeDiff") ." ".$eCart1->DisplayInfo("Grind") ."" . "|" . "".$eCart1->DisplayInfo("Price") ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
$WA_sql = "";

My mind is telling me this should be correct.
Any suggestions?

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