Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Maintaining state while browing HTML pages

    Greetings!
    I inherited a project to create an online candy store.

    The store owner has 23 HTML pages that look exactly the way he wants them to look, showing graphics, descriptions and ingredients with an "Add to Cart" button.

    At present "Add to Cart" works fine when purchasing one item, but the session ID is lost when navigating back to these HTML pages to continue shopping because they do not process the "zenid".

    I would appreciate help in determining the best way to resolve this issue. It appears that I could:
    1) add some PHP code to my pages to process the zenid and then add the zenid to the "form" tag (I need help in identifying the code required); or,
    2) create a very simple template to show these pages that will not add any graphical elements--BUT will maintain the session ID when returning to the shopping cart after browsing these HTML pages (to continue shopping).
    3) maybe a better way?

    Thanks for your help,
    Paul

    Server OS: (Windows Server 2003)
    Database: MySQL 4.1.12-log
    PHP Version: 4.4.1 (Zend: 1.3.0)
    HTTP Server: Microsoft-IIS/6.0
    Zen Cart 1.2.5
    Database Patch Level: 1.2.5

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Maintaining state while browing HTML pages

    you'll need to add a hidden field in each form containing the zenid. (The function zen_hide_session_id() builds this.) However, if you didn't get to the page "from" a Zen Cart page, then you won't know the zenid in order to stuff it into a hidden field.

    All the more reason to use Zen Cart to build your pages.

    Also a good reason to upgrade to a newer version.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v155 An unknown response null::text/html ::SYNTAXERROR: was received while
    By K_C_Enterprises in forum General Questions
    Replies: 5
    Last Post: 28 May 2016, 09:02 PM
  2. v151 Working in Plugin while maintaining existing site
    By eaglescoutdjb in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2015, 12:29 AM
  3. v139h Custom .htaccess problems with existing html site while testing in subfolder
    By dw08gm in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 May 2012, 06:55 PM
  4. Maintaining/ Creating a new Session from static pages ZenID
    By attaboyleisure in forum General Questions
    Replies: 4
    Last Post: 14 Feb 2010, 07:43 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