Discount code/ search

Hello :slight_smile:
Some time ago I created discount codes.
In the table on the admin page, I would like to set to see the number of paid bookings using the code name (e.g.: XYZ).
How can I set this up in the conditions?

Hi there, @bartoszkopec89… I assume you have a code name field on your Booking data type, so you should be able to add a constraint to the search for bookings where the value in the code name field is the code name in question. Have you already tried that?

Best…
Mike

Hi,
no, I have that separate in data type:
code1

How is an invite code associated with a booking?

It is not, the code reduces the amount of the booking.
At the payment stage it is:
payment

and this reduces the payment amount from code

However I think I can count how many payments there have been using with this code (xyz)

Well, yeah, a count of a search for bookings isn’t going to work if there is no association between a booking and a code.

yes :slight_smile:
so I think I can count how many payments there have been using with this code (xyz)

Yeah, I saw that the first time. Anyway, you’re welcome.

1 Like

Thank you for give me solution :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.