Forums / Developer / Adding products to cart

Adding products to cart

Author Message

Rob Clews

Monday 05 January 2004 3:14:40 am

I have my own content class which I want to work like the Product class, how do I get my class to add the item into the cart?

Thanks

Rob Clews

Monday 05 January 2004 7:32:05 am

Found it.

<form method="post" action={"content/action/"|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
<input class="button" type="submit" name="ActionAddToBasket" value="Add to basket" />
</form>