mjlindley Posted March 3, 2005 Share Posted March 3, 2005 Hi, I'm new to osCommerce (about 1 hour) and I've had to write a PC building application which works with osC. I've done that and it's working well. The problem I'm having is getting it to work with the cart. I have all the selected components for the PC held in the php session and simply want to do something like: for ($i = 0; $i < count($_SESSION['components']); $i++) { AddToCart($_SESSION['components'][$i]); } I've absolutely no idea how to plug into the cart object. Is there a document I can read which explains this or could a kind soul please show me how to manipulate the cart object? Many, many thanks in advance. Link to comment Share on other sites More sharing options...
mjlindley Posted March 4, 2005 Author Share Posted March 4, 2005 Please could someone help? I really need to get this done. I've been dropped in at the deep-end on a project. PLEASE could someone spare a paddle who's really up sh*t creek? Link to comment Share on other sites More sharing options...
Wendy James Posted March 4, 2005 Share Posted March 4, 2005 I have no idea how to help you but I believe I saw a contribution used for building custom PCs, maybe that would give you an idea? http://www.oscommerce.com/community/contri.../search,builder Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
mjlindley Posted March 4, 2005 Author Share Posted March 4, 2005 I have no idea how to help you but I believe I saw a contribution used for building custom PCs, maybe that would give you an idea? http://www.oscommerce.com/community/contri.../search,builder <{POST_SNAPBACK}> Yeah, that's what was in place originally and the code is untidy and near unreadable. That's why I've had to write a custom script. I've looked in the developer's section and there's nothing to show you how to use the cart - or I missed it. Thanks for the input though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.