show payment fee in percentage when selecting payment method

  • Posts: 54
  • Thank you received: 7
2 years 9 months ago #339230

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.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339232

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:

echo $this->checkoutHelper->getDisplayPrice($payment, 'payment', $this->options);
to:
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.

  • Posts: 54
  • Thank you received: 7
2 years 9 months ago #339256

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.062 seconds
Powered by Kunena Forum