Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

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

    As noted in this thread: http://www.zen-cart.com/forum/showth...ghlight=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):
    HTML Code:
    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):
    HTML Code:
    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 :)
    Last edited by Ronson; 26 Oct 2006 at 09:56 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    Miami, FL
    Posts
    30
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Mar 2005
    Location
    Miami, FL
    Posts
    30
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default 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.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

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

    bhuntsman,
    Go into the sidebox link and remove the ? and the id after it.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

    Default 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?

  7. #7
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

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

  8. #8
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    0

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

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

    Code:
    <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.

 

 

Similar Threads

  1. products_with_attributes_stock.php?action=edit&products_id=114&attributes=19&q=1
    By Kontaktwear in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 31 Aug 2012, 03:02 PM
  2. Font Color in EZpage Header & Other Places
    By BettyC in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Aug 2008, 06:30 PM
  3. &ZENID is showing up in category URLS?
    By stteacher in forum Setting Up Categories, Products, Attributes
    Replies: 18
    Last Post: 14 Mar 2008, 12:54 PM
  4. Bots & Zenid
    By texdc in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 4 Jan 2007, 08:32 PM
  5. EZPage & zenid&?????
    By Doodlebuckets in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2006, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg