sparkyhd Posted July 27, 2011 Share Posted July 27, 2011 I'm linking to the cart information to display the information on pages outside of Prestashop. The code starts with include('shop/config/config.inc.php'); include('shop/init.php'); This works fine on my WAMP version of the site and the rest of the code can display the cart contents. On the hosted LAMP site the above 2 lines of code actually empty the cart? I guess just calling the script resets the session variables? Any ideas please. Thanks Link to comment Share on other sites More sharing options...
sparkyhd Posted August 4, 2011 Author Share Posted August 4, 2011 I've discovered that my problem is I'm running this script from a parent directory above Prestashop which is in a sub-folder called '/shop' If I run the same script from within the /shop folder it works fine. However I want a main site in the top folder and the shop in /shop. Anyone tell me how to access the cart session data from outside the /shop folder? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now