[Zen Cart] redirects to home after buy-now from listing
[Zen Cart] redirects to home after buy-now from listing
Hello
When viewing products listing (category,new, featured,all), after clicking buy-now(add to cart) button one is redrirected to home page.
Normally one should stay at listing page after performing such action.
Switching off MSU eliminate this problem.
I tried fix from there but this only restores message stack and there is still redirection to home page after add to cart.
How to resolve this?
As I remember there was no such behaviour with MSU v.1
I mean shop from my signature.
Thanks in advance.
When viewing products listing (category,new, featured,all), after clicking buy-now(add to cart) button one is redrirected to home page.
Normally one should stay at listing page after performing such action.
Switching off MSU eliminate this problem.
I tried fix from there but this only restores message stack and there is still redirection to home page after add to cart.
How to resolve this?
As I remember there was no such behaviour with MSU v.1
I mean shop from my signature.
Thanks in advance.
Re: [Zen Cart] redirects to home after buy-now from listing
Please make sure .htaccess file was re-generated and there are no other (3rd party) Rewrite Rules in this file.
Re: [Zen Cart] redirects to home after buy-now from listing
I regenerated .htaccesss - it seems to be same problem with clear MSU generated htaccess or with some extra lines added (a few IP deny and below code) as well
Also tried with and without readonly-htaccess file - still no success
Code: Select all
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
Options -Indexes
<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
#deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
deny from ...
deny from ...
deny from ...
AuthName ...
AuthUserFile /home/...
AuthGroupFile /home/...
Also tried with and without readonly-htaccess file - still no success
Re: [Zen Cart] redirects to home after buy-now from listing
First of all I have to say, even I know it is not popular, it is something outside MSU. I can not tell you what exactly, but personally I think there is a problem with ZC installation (I don't think it is mod_rewrite issue - which is same all over the world).
Re: [Zen Cart] redirects to home after buy-now from listing
As I said before - switching off MSU resolves problem with redirecting to home page, and using MSU compromises my Zen Cart serviceability in very important sphere.
This is unacceptable state as this impede using of webshop.
Did anybody else observe such behaviour or this only happens in my Zen Cart?
This is unacceptable state as this impede using of webshop.
Did anybody else observe such behaviour or this only happens in my Zen Cart?
Re: [Zen Cart] redirects to home after buy-now from listing
There was no such issue since the first MSU version has been released (July 2006).
Re: [Zen Cart] redirects to home after buy-now from listing
BTW I did a quick debugging and the redirect is made with "HTTP 302 Moved Temporarily" status code (MSU does not use that code).
-
- Posts: 10
- Joined: Sun Jan 13, 2013 9:31 pm
Re: [Zen Cart] redirects to home after buy-now from listing
Has this issue ever been addressed. Recently purchased and installed Magic SEO on the new version of our site with the latest version of Zen Cart 151 and I am experiencing the same issue.
I tested and 100% confirmed that MSU is causing this issue and was able to recreate the problem several times with both my custom template and a fresh install with the default template.
If zencart is set to not show the cart when the buy button is clicked on any product listing page while MSU is installed and active you will be redirected to the home page.
The product info buy now buttons do however still work correctly.
Would very much appreciate some news on this because I really need this functionality and MSU.
Thank you.
I tested and 100% confirmed that MSU is causing this issue and was able to recreate the problem several times with both my custom template and a fresh install with the default template.
If zencart is set to not show the cart when the buy button is clicked on any product listing page while MSU is installed and active you will be redirected to the home page.
The product info buy now buttons do however still work correctly.
Would very much appreciate some news on this because I really need this functionality and MSU.
Thank you.
Re: [Zen Cart] redirects to home after buy-now from listing
This issue has not been addressed since it was not an MSU issue ("HTTP 302 Moved Temporarily" redirect is never send by MSU).
Please post us your site URL and step-by-step instructions how to reproduce the problem there.
Please post us your site URL and step-by-step instructions how to reproduce the problem there.
-
- Posts: 10
- Joined: Sun Jan 13, 2013 9:31 pm
Re: [Zen Cart] redirects to home after buy-now from listing
I think I'm circling around the issue. Sometime this week I will setup a clean zencart demo install with nothing but MSU added and post some thoughts to see if we can figure it out together. I realize MSU doesn't throw out 302s directly but I think it's causing ZC to do so somehow.
Something to do perhaps with the rewrites in the htaccess and how the cart functions are setup in the default ZC file /includes/init_includes/init_cart_handler.php
Could perhaps be as easy as a tweek to the htaccess file. But that's just a hopeful guess at this point.
Something to do perhaps with the rewrites in the htaccess and how the cart functions are setup in the default ZC file /includes/init_includes/init_cart_handler.php
Could perhaps be as easy as a tweek to the htaccess file. But that's just a hopeful guess at this point.