Re: Programatically adding an item to the cart

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15459
Re: Programatically adding an item to the cart

What I would do is create a node product that represents any image. Just call it "Picture" or something. Then, give it an attribute called "File" but don't give that any options. Then, when you go to add it to the cart w/ the function, use the data array to specify that attribute w/ the filename of the image you want. You'll have to play with it a little more to get the right image to show up in the cart, but this should be a good starting place.

Programatically adding an item to the cart By: hyperbole@drupal.org (7 replies) Thu, 10/04/2007 - 16:40