modify wordpress plugin/site

Job ID: 35762765

Budget: €30 – €250 EUR

Hello, I'm using 2 plugins to sell event tickets via our webshop.

- YITH Event Tickets for WooCommerce
- YITH WooCommerce Product Add-Ons & Extra Options

Via the add-on, a customer can select a field and enter a name (https://sportingwijchmaal.be/product/eetdag-zaterdag-11-02).

When they enter a name, they get a discount of 15 euro for that order.
Then the customer needs to select the amount op people.
If they want to buy tickets for 4 people, they need to chose "4" via the quantity selecter.

The problem is that most of my clients are using it in a different way:
step 1/ they enter a name and add 1 ticket to their cart.
step 2/ Then they enter a new name and again add 1 ticket to their cart.
...

so instead of ordering 4 tickets in 1 product, they add 4 products to the cart.

This gives them x times the discount.

Can you help me find a way to solve this?

solve 2: change the position of the quantity field, so the customer needs to select the amount of tickets first before they can select the checkbox for the discount.

solve 1: Can we add some code that gives the customer only 1 time the option to enter a name?
When they add a product to the cart and they want to add a new one, there should be a check if the product add-on was already used. If that's the case, this option should not be available anymore.
Related categories: PHP WordPress CSS HTML WooCommerce