Author Topic: [solved]Bug in Standard and Paypal payment methods  (Read 28348 times)

pcmilhouse

  • Beginner
  • *
  • Posts: 10
  • Skype Name: pcmilhouse
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #30 on: December 01, 2013, 16:38:50 pm »
Thanks Milbo for reply.

I don't have any tax.
Only payment type discount of 2% and the payment has no cost.

So if I make a order of 100 €, selecting my payment type I should pay 98€ (100€ - (2%100)) and not 98,16 € (100-(2%(98))).
In my opinion this should be the correct calculation (as made in version 2.0.22).

By the way why since version 2.0.22b the calculation method should be different?

Regards

ArhoN

  • Beginner
  • *
  • Posts: 10
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #31 on: December 04, 2013, 21:21:41 pm »
THe calculation adds the shipping costs also.
I have added 10% at the "Percent of the total product amount"
and I get this screen.
The 10% is calculated at the total ammount of the order.
If I m not mistaken it should be 10% of the "product price result" + shipping = 2,36

[attachment cleanup by admin]

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10088
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #32 on: December 06, 2013, 10:22:01 am »
pcmillhouse,
it has nothing todo with your tax.

Your products costs 90 and your shipment 10. So you have to pay 100 euro, right? The payment has a fee of 2%, so if you have to pay for 100, you must pay with fee 102, right? But the costs for 102 are not anylonger just 2, the costs are still 2%, but of 102 now. => So the costs for the payment are now 2.04, alltogether 102.4.
It has nothing todo with the tax, only with the fee
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10088
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #33 on: December 06, 2013, 10:24:46 am »
THe calculation adds the shipping costs also.

of course

I have added 10% at the "Percent of the total product amount"
and I get this screen.
The 10% is calculated at the total ammount of the order.
If I m not mistaken it should be 10% of the "product price result" + shipping = 2,36
That is completly right. The payment is using the amount to PAY. Not any other fantasy number. You can have taxes, discounts, coupons and shipment, we should ignore that? If you have to pay to your payment processor 2.5% they do not care for which service. It is 2.5% for each kind of product.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ArhoN

  • Beginner
  • *
  • Posts: 10
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #34 on: December 06, 2013, 13:09:33 pm »
Yes but at the plugin configuration at the description of "Percent of the total product amount" It sais "Shipment costs are not included"
minor mistake.

The calculation is almost right
At my example the total value is 23,69 x 10% = 2.37
So this added to the total is 23,69 + 2,37 =26,06
The 10% of this is 2,60 and not 2,63.
Am I wrong?

ArhoN

  • Beginner
  • *
  • Posts: 10
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #35 on: December 06, 2013, 13:15:26 pm »
ok, I calculated again and it adds also the paypal ammount to the total before percentage.
It is right. sorry for the misunderstanding

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10088
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #36 on: December 06, 2013, 15:08:38 pm »
Maybe we changed that already, but I see "percent of the total amount".
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

pcmilhouse

  • Beginner
  • *
  • Posts: 10
  • Skype Name: pcmilhouse
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #37 on: December 16, 2013, 15:13:18 pm »
Thanks Milbo for your reply but I can't understand.

I've no tax and shipment cost.
I've only a payment discount of 2%.

If I make a order of 100 €, selecting my payment type I should pay 98€ (100€ - (2%100)) and not 98,16 € (100-(2%(98))).
In my opinion this should be the correct calculation (as made in version 2.0.22).

By the way why since version 2.0.22b the calculation method should be different?

Thanks for the support


mickey3k

  • Beginner
  • *
  • Posts: 9
Re: [solved]Bug in Standard and Paypal payment methods
« Reply #38 on: August 02, 2015, 23:16:08 pm »
Sorry for digging this up, but just like sardonic32 I need the discount for the standard payment method to be simply a percental discount to the final price. Say 100€ price, 2% discount -> final price 98€.
Can someone tell me how and where I can adjust the calculation? I looked into the standard.php file, but I'm no expert on PHP and I couldn't figure out where to change the file.

Would be a great help!

Thanks