Post by moataz.saberrr » Fri Jun 15, 2018 3:41 am

i want to Redirect to same page after login

if the user is on a specific page (ex: product page) and then click "login" and enter his username and password and login successfully then i want to redirect him to same page where he was.

opencart Version


Fri Jun 15, 2018 3:32 am

Post by d3z1gnr » Fri Jun 15, 2018 7:01 am

How about trying this...


After the following line (line 159?)...

Code: Select all

if ($product_info) {
Insert on new line below...

Code: Select all

$this->session->data['redirect'] = $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id']);

Mike Little
Director / Developer / Makes the coffee
Creative Digital Limited

User avatar
Active Member


Mon Jan 18, 2010 2:59 pm
Location - Auckland, New Zealand
Who is online

Users browsing this forum: No registered users and 16 guests