Skip to main content

show payment fee in percentage when selecting payment method

4 years 9 months ago #339230 by ismael
First of all, the payment fee already seems to be added to the product price before even selecting a payment mehod as shown in the screenshot below.
Also, i want to show the payment fee in percentage instead of the price when selecting payment method as shown in the screenshot.
At last i would like to always show the payment fee. For example when selecting payment method i would like to show 0% payment fee for the payment method IDEAL.
Thanks for your time.

Please Log in or Create an account to join the conversation.

4 years 9 months ago #339232 by nicolas
Hi,

1. ​I don't see what you mean. On your screenshot, I can see that the coinbase payment method is selected and that the cart shows the coinbase payment method fee. Which looks normal to me.

2. Supposing that you configured a percentage fee in your payment method, and not a flat fee, you can do that by editing the file show_block_payment via the menu Display>Views and changing the line:
Code:
echo $this->checkoutHelper->getDisplayPrice($payment, 'payment', $this->options);
to:
Code:
echo round($payment->payment_params->payment_percentage).'%';
The following user(s) said Thank You: ismael

Please Log in or Create an account to join the conversation.

4 years 9 months ago #339256 by ismael
Everything works fine now, thanks.
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum