I would like to be able to redirect my customer back to the page they were viewing when they clicked 'login'. For example, if they are viewing a product, or any other page on my website.
I have ubercheckout mod installed which does redirect the login to its own pages. I was thinking of changing the vqmod file for this so that it can capture a $_GET[] variable, but its not working. I think perhaps it is not picking up the $_GET value.
I changed the xml code that modifies catalog/controller/checkout/checkout.php
Code: Select all
// Uber checkout redirect
if ($this->config->get('uber_checkout_status')) {
if ($this->request->get['redir'] != "") {
$url = "http://www.example.com/".$this->request->get['redir']."?p=".$this->request->get['p'];
$this->redirect($url);
} else {
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/checkout_two');
}
}