News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED]Paypal checkout calculates wrong total amount

Started by Chryly, October 19, 2012, 10:49:56 AM

Previous topic - Next topic

Chryly

Hi VM friends,

(using latest Version VM + Joomla)

When checking out with standard Paypal payment plugin, i have a strange effect.
When checking out the cart shows the correct items and the correct total amount.
After "confirm purchase" i´m correctly forwarded to paypal, but then paypal takes the total amount and multipies it with the amount of orderd items... so the total price is x-times higher (where "x" is the number of orderd items.

Example:
(see images)

Wondering why i did not see any related posts... but hopefully to get some tips of you.


*Update*
I figured out, that if I delete this code in the paypal.php (under /plugin folder) that everything works fine.
$quantity = 0;
foreach ($cart->products as $key => $product) {
$quantity = $quantity + $product->quantity;
}


I compared 2.0.12b (which works good for me) with 2.0.12d (which shows the effect mentioned above)
Is there an error in the syntax ?! Don´t know... just trial and error for me... f---


Thx,

BR,
Chris


[attachment cleanup by admin]

Chryly