Forums / Developer / Adding products to cart

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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>