close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 | 785 views | 5 replies |

codamedia

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.

EG:
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?

Sign in to reply to this post

Jason ByrnesWebAssist

from what i can see this looks to me like it should work too.

Please send a copy of the confirm page so i can see the whole code in context.

Sign in to reply to this post

codamedia

Jason. Here is the confirm page.

Attached Files
confirm.zip
Sign in to reply to this post

codamedia

Jason: I know you are rather busy, but I'm just wondering if you had a chance to glance at this yet?

I know the client is charged the right number, and the receipts (email and page confirmations) are correct, but the client runs reports from the database. Because those value stored is wrong - it is throwing the reports off.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

codamedia

Thanks to Jason for resolving this problem, which took less than 10 minutes on the phone.
Excellent customer service always deserves to be mentioned - not forgotten.

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