Hi
Since no body seems to answer maybe we could start a collaborative research here on the best way to implement a user cart (and possibly a user multi cart) with Seblod.
A first approach would be to :
- create a CART ITEM content type with product_id (the id of the joomla content id to be added in the cart) and quantity fields
- add with a GROUPX the Cart Item in the USER content type
- add a button in the product list and detail pages so that a cart item is added to the active user content
This way we could easily manage the cart for each user, edit the quantities, delete an item from the cart (all this been achieved with the groupx features).
The only problem I see here is HOW can we ADD a group item to the active user content ?
With a CODE field we have access to the PHP code of SEBLOD but what should we write in please ?
1- get the user content object corresponding to the active user
2-add a group item to the groupx field we would have added to the user content type
Any idea please?
thanks
cyril