Hello ! I´m trying to develop a Shopping Cart in Mendix Studio. Can anybody help me with the microflow, how can I design the microflow so that products can be added to the shopping cart? Sorry, a few terms are in german Here are some screenshots from my application:
I assume you mean the add to cart microflow? In that case I would take the following steps:
Associate Order with account. This way you can retrieve the order of the current user.
Add a quantity attribute to product info. Here a customer can indicate how many of a product he wants to order.
When you start the microflow, you give the productinfo as a parameter to the flow.
Then you retrieve the order from the database, by using a retrieve action which retrieves the order associated to current account.
Then you can associate the productinfo, with the order.
When you want to see all the products in an order. You can now retrieve all productinfos related to that order and then get the names of these products over assosciation.
Let me know if you have any questions
first, 4th page looks like a new edit page for product. There is save button. It is better to make it an apart apart page. And are you going to fanelize shopping in that page? If so
Then the microflow
1- Retrieve customer with $current user.
2- Retrieve een open order or create new order.
3-Make association with order and product without commit. (You will do it after that page, I seee)