I need help with Filtering

Hello guys, I’m making a system where users can buy tickets but they can buy only 4 purple tickets and 4 blue tickets in the frontend workflow I set a count:<5 only this doesn’t seem to work he just bypass even the 5


What am I doing wrong?

In your image, the condition is “<4”. Maybe this is it. Change to “<5”.

It doen’t matther he still keep adding the ticket even if its has more than 4 in the order of the same type

Use de debugger in your version-test to see why it is passsing.

Hopefully you solved it already!

It’s hard to tell from the screenshots, would maybe use debug, step by step mode and try to duplicate it. See why the system is reading less than 4. Even though it’s already at 4.

I would first check that the “Search for Bestselling:last item” is actually pulling up the same item for the thing that’s being changed and inside the only when “Search for Kaartjes”

The only when search is probably pulling up a wrong item that’s not being edited.

I solved it by adding to the ticket a owner-user and counting how many times the user owns a ticket.

1 Like