Post by pakchilweb » Fri Jul 31, 2020 12:11 pm

Hi gays,

After cancelation the payment... Really it's too annoying and irritating me because my Opencart send email to me and to my customers and they don't know why email sent to them even they cancel their Order in Payment section and this problem occurring in all payment gateways. So please guys if anybody has solution to solve this problem.

Guys i google it to find this but i never reach on exact solution so please if anybody face the same problem. :-\ :-\ :-\ :-\

Newbie

Posts

Joined
Sun Jul 15, 2018 7:54 am

Post by rjcalifornia » Thu Aug 06, 2020 12:11 pm

Muhammad Mamoon Khan wrote:
Fri Jul 31, 2020 12:11 pm
Hi gays,

After cancelation the payment... Really it's too annoying and irritating me because my Opencart send email to me and to my customers and they don't know why email sent to them even they cancel their Order in Payment section and this problem occurring in all payment gateways. So please guys if anybody has solution to solve this problem.

Guys i google it to find this but i never reach on exact solution so please if anybody face the same problem. :-\ :-\ :-\ :-\
So you want to disable the product order notification?

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by ADD Creative » Mon Nov 02, 2020 10:52 pm

It's probably your payment module adding to the order history unnecessarily.

See viewtopic.php?f=202&t=220274#p801072 for some suggestions.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by pakchilweb » Tue Nov 03, 2020 9:58 am

is that helpful for same error? please see link below..... still my problem is not solved... my customer also confuse when they get order after payment cancellation...
https://isenselabs.com/posts/how-to-fix ... -2200-3020

i am mentioning the video link below so you can see problem. how I can resolve this problem...https://youtu.be/dogPTGb4pL0 .....also the account logout after sending email and whenever not send email the account not logout. so this the problem.... how can i fix
please must see the video where clear error shows

Newbie

Posts

Joined
Sun Jul 15, 2018 7:54 am

Post by sw!tch » Tue Nov 03, 2020 11:55 am

It's probably as @ADD Creative mentioned.

addOrderHistory being called before the payment is confirmed and the order status id is greater than zero.

Does the order show up in the admin panel and if so what's the status?
What payment gateway?

The logout issue could be due to samesite cookies.
https://github.com/opencart/opencart/issues/7946

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by pakchilweb » Fri Nov 06, 2020 5:19 am

sw!tch wrote:
Tue Nov 03, 2020 11:55 am
It's probably as @ADD Creative mentioned.

addOrderHistory being called before the payment is confirmed and the order status id is greater than zero.

Does the order show up in the admin panel and if so what's the status?
What payment gateway?

The logout issue could be due to samesite cookies.
https://github.com/opencart/opencart/issues/7946
how to do that i try it a lot.... would you please explain me little bit,,, because all post recommendations i did but i can not stop the sending email on payment cancellation

Newbie

Posts

Joined
Sun Jul 15, 2018 7:54 am

Post by ADD Creative » Fri Nov 06, 2020 6:25 am

Have you looked at your payment module (or asked the developer) to see where it calls addOrderHistory?

Or have you modified the add function in catalog/controller/mail/order.php to only send or be called for the order statuses you want?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by pakchilweb » Mon Jan 11, 2021 6:48 pm

I have solved this problem. (payment method is www.flow.cl)
How i solved ?
let me explain:

go to module file. path is: /public_html/catalog/controller/extension/payment/flow_webpay.php

edti this above file and find this below code:

private function isPendingInFlow($status){
return $status == 1;

Than change it's status code to:

private function isPendingInFlow($status){
return $status == 0;

now the payment module not sending email and pending order after cancelation of payment method.

Newbie

Posts

Joined
Sun Jul 15, 2018 7:54 am
Who is online

Users browsing this forum: EMGX and 16 guests