Code: Select all
$this->session->data['redirect'] = $this->url->link('account/account', '', 'SSL');
Code: Select all
$this->redirect($this->session->data['redirect']);
Code: Select all
$this->redirect(str_replace('&', '&', $this->request->post['redirect']));
Code: Select all
$this->session->data['redirect'] = $this->url->link('account/account', '', 'SSL');
I use this one:
http://www.opencart.com/index.php?route ... on_id=2609
And I use the "stay on same page or redirect to whatever" redirects from this one:
http://www.opencart.com/index.php?route ... on_id=6979
The second one has several redirects set up for different pages (homepage, login page, logout page, everything else).
I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1
https://www.opencart.com/index.php?rout ... n_id=13998
It has 3 features: Page after login. Page after logout. Plus Strict Login.
Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com
find for this
Code: Select all
if ($this->customer->isLogged()) {
$this->response->redirect($this->url->link('account/account', '', true));
}
Code: Select all
if ($this->customer->isLogged()) {
$this->response->redirect($this->url->link('account/account', '', 'ture'));
}elseif(!isset($this->session->data['redirect']) && isset($_SERVER['HTTP_REFERER'])){
$this->session->data['redirect'] = $_SERVER['HTTP_REFERER'];
}
boxaltcoin wrote: ↑Sun Mar 20, 2022 1:55 amYou would need to edit catalog/controller/account/login.php
find for thisand replace it byCode: Select all
if ($this->customer->isLogged()) { $this->response->redirect($this->url->link('account/account', '', true)); }
Worked for meCode: Select all
if ($this->customer->isLogged()) { $this->response->redirect($this->url->link('account/account', '', 'ture')); }elseif(!isset($this->session->data['redirect']) && isset($_SERVER['HTTP_REFERER'])){ $this->session->data['redirect'] = $_SERVER['HTTP_REFERER']; }
I doubt this would work as intended. true case should be used. Also to replace: $_SERVER with: $this->request->server .ture
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
should most likely look like this:
this->response->redirect($this->url->link('account/account', '', 'true'));
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Amazon [Bot] and 178 guests