Opencart version: 1.5.1.3.1
Clean installation with no upgrade
http://www.waterquality.ie/eshop
Hi,
I am having a problem with customer logout. After logging out in Chrome, there's an error:
"The webpage at http://www.waterquality.ie/eshop/index. ... unt/logout has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects."
After reloading the page it's working fine and it is redirectied to a logout page. I've tried cookies, but it didn't help.
A very similar error pops up using Firefox, but needs get refreshed 3-4 times to get to logout page.
Any suggestions ?
"enable .htaccess" - do you mean rename htaccess.txt to .htaccess in my eshop directory ? I've done that.
Content of .htaccess is :
Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Content of .htaccess is :
Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
i resolved the issue on my site by changing something very small and simple, read article in link bellow
http://www.jackwdavis.com/2012/03/06/ho ... gging-out/
How To Redirect OpenCart Customer On Logging Out
Now, this part is very useful in defining a custom page to show to your OpenCart visitor when they have logged out. By default OpenCart shows them some boring, and useless page which gives them permission to turn off their computer but that space can be very valuable in capturing visitors as they are leaving! You can define a custom information page with some special offers to encourage them to log back in and spend money or just display advertisements/affiliate ads to try and capture some revenue from your departing customers.
The same process applies as above, simply open up the logout controller file located at:
catalog/controller/account/logout.php
Open it up and it have just one redirect function which you will need to change and it looks like this:
$this->redirect($this->url->link('account/logout', '', 'SSL'));
It is about 20 lines down usually and all you need to do it change the route to follow such as:
//To show the home page after logging out
$this->redirect($this->url->link('common/home', '', 'SSL'));
Or you can define an entirely new domain address with a full URL:
//To redirect to a new URL
$this->redirect('http://www.jackwdavis.com');
And there we go, we have a chance to show whatever we want to customers logging out of your OpenCart store. As I mentioned earlier this is great for increasing customer conversions, boosting sales and customer loyalty!
http://www.jackwdavis.com/2012/03/06/ho ... gging-out/
How To Redirect OpenCart Customer On Logging Out
Now, this part is very useful in defining a custom page to show to your OpenCart visitor when they have logged out. By default OpenCart shows them some boring, and useless page which gives them permission to turn off their computer but that space can be very valuable in capturing visitors as they are leaving! You can define a custom information page with some special offers to encourage them to log back in and spend money or just display advertisements/affiliate ads to try and capture some revenue from your departing customers.
The same process applies as above, simply open up the logout controller file located at:
catalog/controller/account/logout.php
Open it up and it have just one redirect function which you will need to change and it looks like this:
$this->redirect($this->url->link('account/logout', '', 'SSL'));
It is about 20 lines down usually and all you need to do it change the route to follow such as:
//To show the home page after logging out
$this->redirect($this->url->link('common/home', '', 'SSL'));
Or you can define an entirely new domain address with a full URL:
//To redirect to a new URL
$this->redirect('http://www.jackwdavis.com');
And there we go, we have a chance to show whatever we want to customers logging out of your OpenCart store. As I mentioned earlier this is great for increasing customer conversions, boosting sales and customer loyalty!
hi, this topic has saved my life for many times. And i want to thank you this time. Really thanks.shragi wrote: ↑Wed Jul 10, 2013 4:35 pmi resolved the issue on my site by changing something very small and simple, read article in link bellow
http://www.jackwdavis.com/2012/03/06/ho ... gging-out/
How To Redirect OpenCart Customer On Logging Out
Now, this part is very useful in defining a custom page to show to your OpenCart visitor when they have logged out. By default OpenCart shows them some boring, and useless page which gives them permission to turn off their computer but that space can be very valuable in capturing visitors as they are leaving! You can define a custom information page with some special offers to encourage them to log back in and spend money or just display advertisements/affiliate ads to try and capture some revenue from your departing customers.
The same process applies as above, simply open up the logout controller file located at:
catalog/controller/account/logout.php
Open it up and it have just one redirect function which you will need to change and it looks like this:
$this->redirect($this->url->link('account/logout', '', 'SSL'));
It is about 20 lines down usually and all you need to do it change the route to follow such as:
//To show the home page after logging out
$this->redirect($this->url->link('common/home', '', 'SSL'));
Or you can define an entirely new domain address with a full URL:
//To redirect to a new URL
$this->redirect('http://www.jackwdavis.com');
And there we go, we have a chance to show whatever we want to customers logging out of your OpenCart store. As I mentioned earlier this is great for increasing customer conversions, boosting sales and customer loyalty!
Who is online
Users browsing this forum: Bing [Bot] and 210 guests