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

rating

ecart error totals cart item amounts match order amounts

Thread began 5/28/2020 8:00 am by georgina_barrett_187762 | Last modified 6/01/2020 3:04 pm by Ray Borduin | 44 views | 5 replies |

georgina_barrett_187762

ecart error totals cart item amounts match order amounts

I have a shop working now (in test mode) I am trying to do the same shop but in a different language (Spanish) . The problem is after the checkout.php page it just goes to the checkout_failure.php page. After looking through the forum I added the code:<?php @session_start(); var_dump($_SESSION); ?> to the payment_failure page and get the following results.



I have tried to compare the files from the other (working) shop but I can't see any difference.

Sign in to reply to this post

Ray BorduinWebAssist

Can I get steps to reproduce? If you view source on that code then I could tell more. It is hard to read without the tags which aren't visible without viewing the source code. You should put it in the private area, since it includes your paypal credentials. I'm updating your original post to move the debug code to the private area for security.

Sign in to reply to this post
Did this help? Tips are appreciated...

georgina_barrett_187762

Thank you, I have just realised the problem is if you pick a colour that is 1 € extra. That is when you get the payment error. It is actually the same on the UK shop.

Sign in to reply to this post

Ray BorduinWebAssist

You just have to pass the correct adjusted price to paypal so the totals add up.

On line 55 of confirm.php you have:

$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Amount" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$esEmailCart->DisplayInfo("Price") ."";


it needs to be:

$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Amount" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".($esEmailCart->DisplayInfo("Price")+$esEmailCart->DisplayInfo("colourPriceInc")) ."";



Same concept on the pp_confirm.php on line 98. You have:

$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Amount" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$esEmailCart->DisplayInfo("Price") ."";


it needs to be:

$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Amount" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".($esEmailCart->DisplayInfo("Price")+$esEmailCart->DisplayInfo("colourPriceInc")) ."";
Sign in to reply to this post
Did this help? Tips are appreciated...

georgina_barrett_187762

Perfect, thank you. The only issue I have left is that on the checkout.php page (on both the UK and Spanish sites) the navigation menu dropdowns no longer work.

Sign in to reply to this post

Ray BorduinWebAssist

There were some missing javascript files on the bottom of your checkout.php page. I've added them and the menu seems to work now.

<script src="../../webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>

Sign in to reply to this post
Did this help? Tips are appreciated...

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