I'm hoping someone can point me in the right direction. Whenever I make a purchase using Paypal with the CCGV mod installed (5.10b), the Paypal mod inserts two rows into the order_totals table.
Sub-Total: $25.00
Sub-Total: $25.00
PA State Sales Tax: $1.50
PA State Sales Tax: $1.50
Flat Rate (Best Way): $3.00
Flat Rate (Best Way): $3.00
Total: $29.50
Total: $29.50
The above result is the order detail from the admin. The interesting thing is that Paypal shows the correct amount.
Currency: U.S. Dollars
Amount: $26.50 USD
Shipping & Handling: $3.00 USD
However, when I use a discount coupon things start to get really crazy.
Sub-Total: $25.00
Sub-Total: $25.00
Discount Coupons:summer: -$5.00
Discount Coupons:summer: -$5.00
PA State Sales Tax: $1.50
PA State Sales Tax: $1.50
Flat Rate (Best Way): $3.00
Flat Rate (Best Way): $3.00
Total: $19.50
Total: $24.50
And this is what Paypal shows at the payment details screen.
Currency: U.S. Dollars
Amount: $16.50 USD
Shipping & Handling: $3.00 USD
I've been scratching my head for days, but I can't make heads nor tails of what might be the problem. To me it almost seems as though its running the order_total twice. I have applied the above mentioned code, but it doesn't seem to have fixed my problem. Any ideas?
clarocque - I don't know if you have fixed the line 29 problem yet, but make sure you have your globals setup. It wasn't setup in the latest download. paypal/checkout_process.php globals should look like this...
global $payment_modules, $shipping_modules, $order, $currencies, $cart, $customer_id, $sendto, $billto, $shipping, $payment, $language, $currency, $languages_id, $order_total_modules;