New Zenner
- Join Date:
- May 2010
- Location:
- Denver
- Posts:
- 3
- Plugin Contributions:
- 0
Post #1 by steel_track
I have Zen Cart installed to the directory /products/ of a website, and to display log in, log off, my account, shopping cart links, or whatever else outside of that folder, I used the following code:
<?php $qcd = getcwd(); chdir($_SERVER['DOCUMENT_ROOT'].'/products'); require_once('includes/application_top.php'); chdir($qcd); ?>With Zen Cart 1.38a, if I logged into an account or added something to the shopping cart, the links would update like they normally would inside of the Zen Cart installation folder.
However, I just upgraded to Zen Cart 1.39b and the links are no longer updating correctly. If I add something to my cart, it displays correctly inside of the /products/ directory, but not outside of it using the code that worked with 1.38a. Also, if I log in, the links do not update to show "my account" and "log off".
I am guessing that 1.39b handles sessions a little differently and that I need to call additional functions or something like that, but I honestly have no idea where to start on this one.
Any help is much appreciated!