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 2.3.0.2
How about trying this...
catalog/controller/product/product.php
After the following line (line 159?)...
Insert on new line below...
catalog/controller/product/product.php
After the following line (line 159?)...
Code: Select all
if ($product_info) {
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
http://www.creativedigital.co.nz
Who is online
Users browsing this forum: No registered users and 38 guests