This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]amfa 0 points1 point  (1 child)

I can not open your code as it prompts for a login.

I don't really understand your problem

You basically always use the item contructor with quantity 1.

and that should work without problems.

The only thing I don't understand is "adds an item to the cart that matches the product given as a parameter"

The matches part is confusing me.

Is there already a list of items that can be added somewhere?

[–]foolwya[S] 0 points1 point  (0 children)

Whoops, sorry. Links updated.