VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Eleonora77 on January 18, 2023, 14:32:39 PM

Title: Error fee calculation
Post by: Eleonora77 on January 18, 2023, 14:32:39 PM
HI
I have a problem with calculating cash on delivery fees.
Minimum fee per transaction is 2
Commission or cashback as a percentage of the total amount is 1.5

139,08 + sped 13,42 = 152,50
1.5% would be 2.29 and instead put 2.32

joomla 3.10.5
VirtueMart 3.8.8 10472

Thank you for every suggestions
Title: Re: Error fee calculation
Post by: Jörgen on January 19, 2023, 19:02:26 PM
Looks like it calculates on the total incl fee. What delivery option is this ?

Jörgen
Title: Re: Error fee calculation
Post by: ssc3 on January 19, 2023, 22:38:23 PM
Click on the "Payment Method Information" tab

Scroll down and you should see an option called

"Progressive"

Try unticking it and see if that helps.
Title: Re: Error fee calculation
Post by: Eleonora77 on January 24, 2023, 14:54:04 PM
The type of payment is "cash on delivery" and is settings like a standard method.
I standard method i cant see the field progressive, is an option of paypal method.
Title: Re: Error fee calculation
Post by: Jörgen on January 24, 2023, 16:00:50 PM
It seems like the calculation includes 1,5 % on the 1,5 % fee.  I do not know if this is intentional. Paypal calls this progressive kickback.
The description actually says fee or kickback on the TOTAL amount. And that is what it is, 1,5 % fee of the total cost including kickback fee.

You could set a different number to make a work around.

Fee to set:
fee_to_set = wanted_fee / (1 + wanted_fee/100)

example :
wanted_fee = 1,5 %
fee _to_set = 1,5 / (1 + 1,5/100) = 1,477833 %

Set 1,477833 % in the payment option and result will be as you want.

It is not bug fix a solution, it is a band aid, but it should work for now.

Jörgen @ Kreativ Fotografi


Title: Re: Error fee calculation
Post by: Eleonora77 on January 24, 2023, 16:33:36 PM
Thank you @Jorgen now it's perfect! :)
Title: Re: Error fee calculation
Post by: ssc3 on January 24, 2023, 16:37:35 PM
Quote from: ssc3 on January 19, 2023, 22:38:23 PM
Click on the "Payment Method Information" tab

Scroll down and you should see an option called

"Progressive"

Try unticking it and see if that helps.

The option to turn of progressive calculations is in the payment method setup.

That's the first tab at the top of the page and not the second tab.

Just scroll down the page and look for the tick box marked progressive.

Never seen this used outside Virtuemart. Might generate a lot of queries to user support if used on a live site.

In some countries it is illegal to charge extra for the type of payment. So check local regulations before you include this.