Post by Pittino » Wed Oct 05, 2022 8:55 pm

Hi,
on opencart 4.0.1.1 when I try to redirect to checkout (for example on payment cancellation) I lost the user login connection and Opencart will not re-present the checkout but the empty cart page (no user login connection):
this is the code that I use after payment cancellation:
if ($charge->status === 'ACCEPTED') {
$this->load->model('checkout/order');
$this->model_checkout_order->addOrderHistory($charge->metadata->order_id, 1);
$this->response->redirect($this->url->link('checkout/success'));
} else {
$this->response->redirect($this->url->link('checkout/checkout'));
}
The code
$this->response->redirect($this->url->link('checkout/checkout'));
not work properly.
Can someone help me?
Thanks so much.

Newbie

Posts

Joined
Wed Oct 05, 2022 8:45 pm

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Wed Oct 05, 2022 11:07 pm

There were recent changes with the Authorize methods that were still worked on this week on the MB. It may be though to tell if those changes have been completed or if it's still a work in progress.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Pittino » Wed Oct 05, 2022 11:49 pm

I've tried to replace with latest github but same problem...
The http redirect link with command code : $this->response->redirect($this->url->link('checkout/checkout')); is:
index.php?route=checkout/cart&language=en-gb
and not:
index.php?route=checkout/checkout&language=en-gb

Newbie

Posts

Joined
Wed Oct 05, 2022 8:45 pm

Post by straightlight » Wed Oct 05, 2022 11:57 pm

I would suggest creating an issue case on the Github opencart repository and fill in the template with the detailed explanation in order to know how the described issue can be reproduced in order for the OC team to review it.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Pittino » Thu Oct 06, 2022 2:22 pm

Ok. I'll do it....
Thanks to all.

Newbie

Posts

Joined
Wed Oct 05, 2022 8:45 pm
Who is online

Users browsing this forum: OSWorX and 6 guests