Post by Jane Blonde » Wed Oct 21, 2020 2:10 am

HI Guys,

I'd like to redirect Agent/resellers to a list of products instead upon login, does anyone know of a good redirect method?

David

New member

Posts

Joined
Tue Jul 19, 2011 6:35 pm

Post by sw!tch » Wed Oct 21, 2020 2:42 am

Redirect method as in what?

You can view the response class for usage, but otherwise its striaght-forward.
ex:

Code: Select all

$this->response->redirect($this->url->link('common/home', '', true));

Backup and learn how to recover before you make any changes!
Full Stack Web Developer :: Contact via PM for custom work.


Active Member

Posts

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

Post by Jane Blonde » Wed Oct 21, 2020 4:23 pm

sw!tch wrote:
Wed Oct 21, 2020 2:42 am

Code: Select all

$this->response->redirect($this->url->link('common/home', '', true));
Thanks sw!tch, unfortunately I, I wouldn't know where to put this. Also, does this work for a specific user group?

New member

Posts

Joined
Tue Jul 19, 2011 6:35 pm

Post by sw!tch » Wed Oct 21, 2020 4:44 pm

I thought you were asking for a redirect method. ;D

If nothing exists in the marketplace and you are not comfortable editing code, consider a commercial request with more details on what you require.

Backup and learn how to recover before you make any changes!
Full Stack Web Developer :: Contact via PM for custom work.


Active Member

Posts

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

Post by paulfeakins » Wed Oct 21, 2020 7:31 pm

Jane Blonde wrote:
Wed Oct 21, 2020 4:23 pm
Thanks sw!tch, unfortunately I, I wouldn't know where to put this. Also, does this work for a specific user group?
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Jane Blonde » Fri Oct 30, 2020 1:56 am

I did it by setting a slide on the home page that told the user to click a link for their area, that's all I could think of and it's worked so far. Thanks fro your help.

New member

Posts

Joined
Tue Jul 19, 2011 6:35 pm
Who is online

Users browsing this forum: No registered users and 29 guests