Simple calculation for a woocommerce price change (how to add an amount correctly)

Hi,
my goal is to raise the price of a WooCommerce product after every sale.

Here is my worksflow:

I tried different formulars and did not find a solution in the help files, on youtube and in chat gpt. I just want to add 10 euro to the regular price. But instead of raising the price from 597 to 607, I get 59710.

How can I calculate correctly? It seems to be so simple, but I did not manage to find a solution by myself in more than 2 hours.

You need to convert to a number first using parseNumber before you can perform math operations.

{{ parseNumber(regular_price_variable) + 10 }}

Alternatively you can try to put the 10 + at the front before your variable.

{{ 10 + regular_price_variable }}

2 Likes