Guys, another problem that I’m trying to solve, but without success.
I am selling tickets for a specific event, and when selecting the quantity of each ticket, when I send the information to the database, everything apparently goes well, but when we go to the checkout page the user needs to define who will own each ticket. ticket. However, when trying to list the exact number of forms for each ticket, the same does not happen.
I can’t find the possible error to pull this information from the database.
When you click on the “buy” button, this data is inserted into the “Cart” database:
Can you share how your Name-Email group is displayed? It should be the amount of number of tickets in the event (which is 2 in this case). Is that in a repeating group?
It is searching for Carrinhos (Carts), so it technically returns only 1 entry if I am not mistaken. What you should do instead is Search for Carrinhos’ first Item’s Ingressos. This should include 2 item I guess. And type of the content should not be Carrinho of course, it should be Ingressos.
In this second test, as the cart expires, I now believe it has 3 tickets, to make sure that it would not only read the number of tickets registered in the database, which are 2.
Then you should do some calculation to find the exact number of tickets in one cart and put it here. I cant tell any further than this. The ticket-event-cart relationship looks a bit complicated than it should be.