Changing prices based on characters of custom text field

Hello guys, I’m new to this and I’m seeking for your help.
I have a web page that sells online jewelries. I have a category with custom made jewelries were the user gives an input with characters. For example, I’m selling a necklace with a custom made name on it. Then the user inputs the name that he wans.

My question is, how can I change the price based on the characters that the user gives in the field? For example 6 characters 30 euros, 7-11 characters 40 euros and 12-15 characters 50 euros.

Thanks in advance,
A beginner :stuck_out_tongue:

Hey Chrys,
I can think of two possible solutions.

  1. The easy: Add product options for characters, for example:
    Option 1 : 0-10 characters: 30 euros
    option 2: 11-20 characters: 40 euros
    And so on…

  2. using corvid, you can create a custom product: After the user fills in all the info, create the product.
    After the order is created, change the product visibility to false to hide it from users.

Here are some links that can help you:
Create custom product example
Create product API
Update product fields API
On new order, event API

Best regards

B.