Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    75
    Plugin Contributions
    0

    Default Access Cart Data Outside Cart?

    Hi all,

    These are just samples but I have a Zen Cart install at http://teg.name/test/ and a non-cart related page at http://teg.name/letter.php

    I would like to be able to access the information on if a person is logged into Zen cart so I can say welcome back to them much like the homepage, but outside the cart or "off-cart" so to speak.

    Is this possible with the Zen info and if so, any clues about how do I go about it?

    Thanks,
    Andrew

    PS > I'd also like to eventually get the current prices out of the database so this page updates the price automatically if there is a sale for example. I can do this with custom queries I think so getting the user info is most important but if there's a quicker way for this data that's great too.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Access Cart Data Outside Cart?

    Why not use something like the code snippet I posted here:
    http://www.zen-cart.com/forum/showthread.php?t=33410
    ... at least as a starting point for pulling data etc.
    .

    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.

  3. #3
    Join Date
    Dec 2005
    Posts
    75
    Plugin Contributions
    0

    Default Re: Access Cart Data Outside Cart?

    Thanks for the reply!

    I think the problem I'm having is that my cart is installed in a subdirectory of my site. This means whenever I call application_top.php from outside the cart it redirects me to zc_install because it's looking for /includes/configure.php and not /cart/includes/configure.php.

    If I fix the install by modifying application_top I get the problem with the next include and so on so I'm guessing at this point I'd have to modify every function that application_top gets or includes.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 16 Dec 2012, 09:21 PM
  2. Shopping Cart menu as a sidebox outside Zen-Cart -security
    By fl33140 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Feb 2011, 09:03 PM
  3. Replies: 1
    Last Post: 28 Jan 2009, 01:50 AM
  4. Replies: 1
    Last Post: 15 Mar 2008, 11:29 AM
  5. Access Product Information outside of Zen Cart
    By nhinternetsolutions in forum General Questions
    Replies: 5
    Last Post: 15 Oct 2007, 02:07 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR