Shopping Cart app

0
Hello everybody! i’m creating an Shopping Cart App with the Mendix modeller Version and i have few Questions: (The app is in German i hope you can understand the Problem) I can add a Product from the Productlist and it can be added to the cart, but only for the moment i can’t add multiple Products in my Cart there are just one Product and it cant be saved Are there Learning paths with these example??    my Domain Model: i have Entities like Product(Produkt), Costumer(Kunde), Order(Bestellung) and OrderLine(Bestellzeile) Here a the Microflow for the Button “add to cart”           How can i design the page w2?? should i create a listview? or a dataview? i want a list of the Products that have been added to the cart. with a Dataview only 1 Product can be added for the moment.   i hope you can help me.        
asked
2 answers
0

Hi Tugce,

It is hard to give definitive answer since I can see all you logic, but there are some things I can think of:

  1. In your microflow it seems like you don't set an association between the orderlines and the actual the actual order. You create an orderline, but don't associate it with this order.
  2. If you can see the association, but it is not saved, that would mean your logic is missing a commit somewhere. Are you sure the shopping cart is committed and you do not keep creating new instances of the shopping cart object.
  3. Also check if your orderlines get committed in the logic and if they are associated to the same shopping cart in the logic.

 

I think all of this is covered in the rapid developer learning part, which I would definetely recommend. Also I would recommend downloading studio pro (for free) and work in that, it'll make it easier. If you don't find it with these tips set a breakpoint in the beginning of your logic and go through it step by step with the debugger..

Hope this helps!

answered
0

Hi Tugce,

It is hard to give definitive answer since I can see all you logic, but there are some things I can think of:

  1. In your microflow it seems like you don't set an association between the orderlines and the actual the actual order. You create an orderline, but don't associate it with this order.
  2. If you can see the association, but it is not saved, that would mean your logic is missing a commit somewhere. Are you sure the shopping cart is committed and you do not keep creating new instances of the shopping cart object.
  3. Also check if your orderlines get committed in the logic and if they are associated to the same shopping cart in the logic.

 

I think all of this is covered in the rapid developer learning part, which I would definetely recommend. Also I would recommend downloading studio pro (for free) and work in that, it'll make it easier. If you don't find it with these tips set a breakpoint in the beginning of your logic and go through it step by step with the debugger..

Hope this helps!

answered