close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal checkout price incorrect

Thread began 5/09/2011 11:23 am by admin140217 | Last modified 5/10/2011 7:28 am by Jason Byrnes | 2171 views | 6 replies |

admin140217

PayPal checkout price incorrect

I am adding two prices together via the calculations tab in the eCart Object panel. The "Price" is set to $55.00 and a dinner price set to $35.00, the calculation is as follows:

[Price] * [Quantity] + [DinnerPrice]

This totals to $90.00 correctly in the shopping cart display and confirm.php page but only sends the $55.00 to PayPal instead of the total price of $90.00.

In the database the total price of $90.00 is correct in the orders table but not the order details table

Why is it not sending the total price to order details table or PayPal? No modification have been made to any of the pages.

Thanks,

Sign in to reply to this post

admin140217

I see why the details table only reads the $55.00 but I do see why the total price is not going to PayPal.

Help in getting this to send the proper amount to PayPal would be great.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

Did you modify the Total Price Calculation from:

[Price] * [Quantity]

to:
[Price] * [Quantity] + [DinnerPrice]

for this?

you should also create another calculation:

realPrice:
[Price] + [DinnerPrice]


then edit the code that sends the item price to paypal to use the realPrice instead of Price.


are you using paypal payments pro? or paypal standard?

Sign in to reply to this post

admin140217

Yes, I did modify the total price calculation to [Price] * [Quantity] + [DinnerPrice]

Ahh, I didn't realize I needed another calculation. I'm just using PayPal standard for this.

Sign in to reply to this post

Jason ByrnesWebAssist

yeah, since you are modifying the total price, you need another calculation for the item level price.

on the confirm page, there will be a line similar to this:

php:
<input type="hidden" name="amount_<?php echo $eCart1_Index+1?>" id="amount_<?php echo $eCart1_Index+1?>" value="<?php echo WA_eCart_FormatNumber($eCart1->DisplayInfo("Price") - (($eCart1->DisplayInfo("Price")/$eCart1->TotalColumn("TotalPrice")) * $eCart1->GetDiscounts()), false2?>" />


modify that to use the realPrice calculation:

php:
<input type="hidden" name="amount_<?php echo $eCart1_Index+1?>" id="amount_<?php echo $eCart1_Index+1?>" value="<?php echo WA_eCart_FormatNumber($eCart1->DisplayInfo("realPrice") - (($eCart1->DisplayInfo("realPrice")/$eCart1->TotalColumn("TotalPrice")) * $eCart1->GetDiscounts()), false2?>" />
Sign in to reply to this post

admin140217

Got it

Thanks again Jason,

I actually found it just before you posted, I appreciate your help!

It posts the $90.00 to PayPal now.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

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