[Zen Cart] redirects to home after buy-now from listing

Magic SEO URLs for Zen Cart.
Kubazoo
Posts: 4
Joined: Mon Oct 06, 2008 7:27 pm
Location: Warsaw, Poland
Contact:

[Zen Cart] redirects to home after buy-now from listing

Postby Kubazoo » Mon Jun 07, 2010 5:53 pm

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.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby inveo » Mon Jun 07, 2010 6:05 pm

Please make sure .htaccess file was re-generated and there are no other (3rd party) Rewrite Rules in this file.

Kubazoo
Posts: 4
Joined: Mon Oct 06, 2008 7:27 pm
Location: Warsaw, Poland
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby Kubazoo » Tue Jun 08, 2010 7:59 pm

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

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

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby inveo » Wed Jun 09, 2010 11:17 am

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).

Kubazoo
Posts: 4
Joined: Mon Oct 06, 2008 7:27 pm
Location: Warsaw, Poland
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby Kubazoo » Wed Jun 09, 2010 6:27 pm

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?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby inveo » Thu Jun 10, 2010 4:16 am

There was no such issue since the first MSU version has been released (July 2006).

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby inveo » Thu Jun 10, 2010 7:30 am

BTW I did a quick debugging and the redirect is made with "HTTP 302 Moved Temporarily" status code (MSU does not use that code).

experimedia
Posts: 10
Joined: Sun Jan 13, 2013 9:31 pm

Re: [Zen Cart] redirects to home after buy-now from listing

Postby experimedia » Sun Jan 13, 2013 9:42 pm

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.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] redirects to home after buy-now from listing

Postby inveo » Sun Jan 13, 2013 10:01 pm

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.

experimedia
Posts: 10
Joined: Sun Jan 13, 2013 9:31 pm

Re: [Zen Cart] redirects to home after buy-now from listing

Postby experimedia » Mon Jan 14, 2013 6:41 am

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.