Change payment mode

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #62297

Hi,
i think there is something wrong when the user change the payment.
I've set a little charge of 1,5% with paypal payment just some month ago.
Now i notice that.
Example:
i did an order whit bank transfer payment
I go in my controll panel
I change my payment from bank transfer to paypal
I go to paypal site and i can pay without the charge of 1,5% :ohmy:
If i am a user i'm very happy about that, but i am the seller and i'm very sad about that! ;)
Can we do something to fix that?
Thanks


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #62322

Hello,

can you send me a screenshot of your Paypal configuration ?

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #62341

Hello,
here you are!


my site with Hikashop
www.lacasettabio.it
Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #62343

Can you test it without the "Send details of the order" option ?

Last edit: 12 years 2 months ago by Mohamed Thelji.

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #62364

Done.
Sorry it is the same: it does not work!


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #62383

Ok, can you test it with the last version of the Paypal payment method ?

Attachments:

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #62410

How it works?
I mean what have i to do to insert the new version of paypal in my Hikashop?


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #62414

You'll just have to :
- Download the ZIP file that I gave you in my last post.
- Go to "Control Panel->Extension manager->Install"
- Install the ZIP file through Upload Package File tab
Hope this will help you.

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #62515

Done.
But there is always the same error. :(
When i change my payment from bank transfer to paypal the system leads me to paypal site without any fee.
Notice that if i make an order choosing paypal for the first time i have the correct fee.
You can see this error only if you change the type of payment from the user control panel.


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #62525

Ok, Can you give me a temporary access to your a back-end by MP ?

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #63021

Hi,
i send you what you asked me by Pm a few days ago.
Did you receive my posts?


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #63024

Yes but it seems to be working fine :

Attachments:

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

  • Posts: 719
  • Thank you received: 3
12 years 2 months ago #63059

Yes,
but i think you did not understand me.
You made an order with paypal payment. So I said you it works fine! I know!
You have to make an order with bank transfer payment.
Then you have to go to "your orders made" by frontend of the site after your login.
Then you have to change the payment from bank transfer to paypal.
After that, when you redirect to paypal you notice that there is any fee.
Could you try again please.
I've just changed your order ( the same you made) with bank transfer payment without fee.
Now you should change the payment to paypal on frontend to see the bug.


my site with Hikashop
www.lacasettabio.it
Last edit: 12 years 2 months ago by lacasetta.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
12 years 1 month ago #63153

The payment fees are indeed not added if the user changes payment method on his orders listing.

You need to add the code

$paymentClass = hikashop_get('class.payment');
				$payment = $paymentClass->get($payment_id);
				if(!empty($payment->payment_params)&&is_string($payment->payment_params)){
					$payment->payment_params=unserialize($payment->payment_params);
				}
				$full_price_without_payment = $order->order_full_price-$order->order_payment_price;
				$new_payment_price = ($full_price_without_payment * (float)@$payment->payment_params->payment_percentage / 100) + @$payment->payment_price;
				$updateOrder->order_payment_price = $new_payment_price;
				$updateOrder->order_full_price = $full_price_without_payment+$new_payment_price;
before the code
$updateOrder->order_payment_method = $payment_method;
in the file components/com_hikashop/controllers/order.php in order to handle that.

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

  • Posts: 719
  • Thank you received: 3
12 years 1 month ago #63298

Hi,
now it seems better but not good.
On backend it is correct: after the change i have the correct fee.
But the error is still on paypal-end: after the payment change the system sends to paypal site without the fee.


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
12 years 1 month ago #63474

Ah yes. Please also add these two lines after that code:
$order->order_payment_price = $updateOrder->order_payment_price;
$order->order_full_price = $updateOrder->order_full_price;

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

  • Posts: 719
  • Thank you received: 3
12 years 1 month ago #63516

PERFECT!!!
Thanks a lot!!!

will that code be on the next release?


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
12 years 1 month ago #63742

Yes.

The following user(s) said Thank You: lacasetta

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

Time to create page: 0.109 seconds
Powered by Kunena Forum