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