NoSpin Posted July 3, 2007 Share Posted July 3, 2007 I am redesigning a webpage for a client who is using OSCommerce. I really do not know much about this tool and I have found it difficult to configure. So instead I would like to create the webpage from scratch, and use OSCommerce purely for the billing and content management. Basically they will use my webpages to browse the merchandise and when they are ready to buy I will send them to the oscommerce page and allow oscommerce to ring them up and charge them. I am reading the database fine, the problem is accessing the session variables. I want to figure out how to read which items are currently in the shopping cart, and also be able to add and remove them. I have used the oscommerce pages to add two items to the shopping cart and then I went to a page I made and tried to read what was choosen. Not too easy it seems. this code: <?php session_start(); Print_r ($_SESSION); ?> gave me this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent I assumed that OSCommerce has enabled autostart and tried this code: <?php Print_r ($_SESSION); ?> and now this error: Notice: Undefined variable: _SESSION What do I need to do to read what is currently in the shopping cart? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.