Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Plugging into the cart.


mjlindley

Recommended Posts

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

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

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...