Zen Cart Logo
Forums / All Other Contributions/Addons / EZPage & zenid& (again)?????

EZPage & zenid& (again)?????

Locked

Views: 1,957

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Oct 2006, 8:51 PM
#1
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

EZPage & zenid& (again)?????

As noted in this thread: http://www.zen-cart.com/forum/showthread.php?t=45415&highlight=ezpage there is a problem with the links of the ezpages. I think I figured out what the problem is but I don't know how to fix it.

Using Ultimate SEO URLs and linking to an internal ezpage there is a conflict with the link format.
I have a few ezpages that link internally to existing pages in zen-car, eg privacy.html, contact_us.html etc. These are the pages from the Information sidebox. My purpose is to make a horizontal nav bar with the same links as these in the Information sidebox.

My EZPAGES_STATUS_HEADER is turned on so that my ez links are in the header of the store.
Then I load my main page of the store http://www.mystore.com. My links to ezpages are in the header just beneath the logo/sales message. So far so good. But if I click a link in my horizontal nav bar I get: Page Not Found. So I started searching for the problem. And then I noticed that the links in my horizontal nav bar and the links in my Information sidebox have a little difference (actually they should be the same link as they point to the same pages). The difference is as follow:

The link in my Information sidebox looks like this (note that this link works perfectly):

http://www.mystore.com/privacy.html?zenid=0cc2428aabe5f01c7d6344e13a785083

The link in my hor nav bar looks like this (this link doesn't work at all):

http://www.mystore.com/privacy.html&zenid=0cc2428aabe5f01c7d6344e13a785083

Do you notice the difference?
The Information sidebox link format is filename.html?zenid=... while the hor nav bar link format is filename.html&zenid=...

It seems all the problems are in this & symbol. It should be ? instead.

Anybody can help? Thank you in advance :)

27 Oct 2006, 2:40 AM
#2
bhuntsman avatar

bhuntsman

New Zenner

Join Date:
Mar 2005
Location:
Miami, FL
Posts:
29
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

My site http://www.learningbydvd.com has just started experiencing the same EZ-page header error.

i.e.: "The Information sidebox link format is filename.html?zenid=... while the hor nav bar link format is filename.html&zenid=...It seems all the problems are in this & symbol. It should be ? instead."

The strange thing is that it was working fine up until just a day or two ago. Any suggestions would be most helpful.

27 Oct 2006, 2:59 AM
#3
bhuntsman avatar

bhuntsman

New Zenner

Join Date:
Mar 2005
Location:
Miami, FL
Posts:
29
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

I solved my own problem...I had the links in the internal links...I changed to external links and it appears (at least for now) to be working correctly.

27 Oct 2006, 3:14 AM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

The zen ids shouldn't be there at all. Those are session ids and when a customer is the store they have there own session id and the link has a different one. see the problem.

27 Oct 2006, 3:18 AM
#5
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

bhuntsman,
Go into the sidebox link and remove the ? and the id after it.

27 Oct 2006, 6:55 AM
#6
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

I do not have ? or & in my links when i write them in the ez pages. For example, my ez page pointing to the privacy page has internal link: privacy.html
It seems the zen-cart automatically adds session id to the end of the link.

I changed the link from internal to external. Now the links in my hor nav bar do not have session id, while the links in my Information sidebox still have it. Any idea why and is this correct?

27 Oct 2006, 10:44 AM
#7
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZPage & zenid& (again)?????

It's not correct. The privacy page is an internal page, it's a part of the Zen script. By setting it as external the zenid will not be added, even when cookies are not accepted (by the user) and thus you loose support for users who do not accept cookies. (for example their cart will empty itself and they will be logged out when they click such a link).

But since most users accept cookies (I think) it might be better to accept this (and drop the non cookie support ftb) until you've fixed the bug....

27 Oct 2006, 6:57 PM
#8
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

Re: EZPage & zenid& (again)?????

Ok, I decided to add and use temporarily the following code in tpl_header.php:

<div id="TopHorNav">
<ul>
<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US, '', 'NONSSL'); ?>">About us</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>">Contact Us</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SHIPPING, '', 'NONSSL'); ?>">Shipping & Returns</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_PRIVACY, '', 'NONSSL'); ?>">Privacy Notice</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS, '', 'NONSSL'); ?>">Conditions of Use</a></li>
<li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP, '', 'NONSSL'); ?>">Site Map</a></li>
</ul>
</div>

This way the link format is ok and I do not loose the session ids. I hope that in the next versions the problem will be solved.