Skip to main content

Change payment mode

More
14 years 1 month ago #62297 by lacasetta
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.

More
14 years 1 month ago #62322 by Mohamed Thelji
Hello,

can you send me a screenshot of your Paypal configuration ?

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

More
14 years 1 month ago #62341 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
Hello,
here you are!

my site with Hikashop
www.lacasettabio.it

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

More
14 years 1 month ago - 14 years 1 month ago #62343 by Mohamed Thelji
Can you test it without the "Send details of the order" option ?
Last edit: 14 years 1 month ago by Mohamed Thelji.

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

More
14 years 1 month ago #62364 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 1 month ago #62383 by Mohamed Thelji
Ok, can you test it with the last version of the Paypal payment method ?

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

More
14 years 1 month ago #62410 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 1 month ago #62414 by Mohamed Thelji
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.

More
14 years 1 month ago #62515 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 1 month ago #62525 by Mohamed Thelji
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.

More
14 years 4 weeks ago #63021 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 4 weeks ago #63024 by Mohamed Thelji
Yes but it seems to be working fine :

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

More
14 years 4 weeks ago - 14 years 4 weeks ago #63059 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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: 14 years 4 weeks ago by lacasetta.

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

More
14 years 4 weeks ago #63153 by nicolas
Replied by nicolas on topic Re: Change payment mode
The payment fees are indeed not added if the user changes payment method on his orders listing.

You need to add the code
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
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.

More
14 years 3 weeks ago #63298 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 3 weeks ago #63474 by nicolas
Replied by nicolas on topic Re: Change payment mode
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.

More
14 years 3 weeks ago #63516 by lacasetta
Replied by lacasetta on topic Re: Change payment mode
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.

More
14 years 3 weeks ago #63742 by nicolas
Replied by nicolas on topic Re: Change payment mode
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.270 seconds
Powered by Kunena Forum