Hikashop pay now payment fee

  • Posts: 54
  • Thank you received: 7
2 years 3 weeks ago #339841

Hi,
I have recently changed to show the payment fee in % instead of price shown in the attachment below(hikashop_paymentfee.png).
I came across the pay now fucntion in the order listing page and noticed on there you still see the payment fee in price instead of % as shown in the second attachment.
How do i also show the payment fee in % instead of price on the pay now page.
Thanks in advance,

Ismael

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 3 weeks ago #339843

Hi,

That's not as easy to change.
This will require modifying the code:

$diff = $method->payment_price_with_tax - $this->order->order_payment_price;
					$sign = '';
					if($diff > 0)
					 $sign = '+';
					$this->methods[$this->type][(string)@$this->order->order_id][$k]->payment_name .= ' ('.$sign.$currencyClass->format($diff, $this->order->order_currency_id).')';
in the file administrator/components/com_hikashop/types/plugins.php
This is a core file of HikaShop, so you will lose your changes each time you update HikaShop.
To avoid that, you would have to override the whole class with the development of a system plugin:
www.hikashop.com/support/documentation/6...ntation.html#classes

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

  • Posts: 54
  • Thank you received: 7
2 years 3 days ago #340401

Hi,

I found a bug on the pay now page.
Whenever i click pay now with a payment fee and cancel the payment by going back to last page the other payment methods price change instead of the one with a payment fee.
Screenshots in attachment if i was unclear.
Thanks,

Ismael

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 3 days ago #340402

Hi,

The payment method without a + or - fee is the one selected in the order. So its fee is included in the total of the order.
The + or - fee of the other payment methods is the difference it will make if you switch to the other payment methods.

So on your first screenshot, you have a total 14050.97€ with another payment method.
And you selected coinbase which adds +140.51€ to the order.
On your second screenshot, you must have a total of 14050.97 + 140.51 = 14191.48€ with the coinbase payment method selected.
And if you switch to iDeal or bank transfer, it will remove these 140.51€ that were previously added to the total.

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

  • Posts: 54
  • Thank you received: 7
2 years 3 days ago #340404

Hi,

I see how it works but i dont like this concept.
Whenever someone is trying to complete the order i want to show the right payment fee at all times.
So whenever i want to switch to a different payment method i want to see the same payment fee's as before.
I hope you understand this can only be confusing to my costumers.
Is there a way to always show the right payment fee?
Thanks in advance,

Ismael.

Last edit: 2 years 3 days ago by ismael.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 3 days ago #340407

Hi,

So you want the total to be displayed there to be without the payment fees and that the payment fees in the dropdown are similar to the checkout.
I understand what you mean but there is no easy way to change that. As I said previously www.hikashop.com/forum/4-how-to/904060-h...ment-fee.html#339843 it would require change PHP code in core files of HikaShop.

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

  • Posts: 54
  • Thank you received: 7
2 years 2 days ago #340428

Allright, i will try to change the code. Il update you on my progress.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum