I have a VPS, already configured, an installed Wordpress site, Woocommerce, a theme called Thrive that is community orientated and a plugin called Woocommerce subscriptions, that allows users to get monthly subscriptions.
What I need:
So, users will have to pay a monthly fee, which is already covered by my Woocommerce subscription fee. The thing si that that fee should be variable, based on a user consumption variable.
That fee is based on a mathematical formula, that an admin can edit from the backend. The formula is calculated on some fields that an admin will edit in some custom made fields.
The user will have to complete two other fields that will connect to the formula that I mentioned earlier.
Explaining the formula
Formula = a + b + c + d + e + f + g
a = a field that is completed manualy by the admin with a fixed number
b = a field that is completed manualy by the admin with a fixed number
c = is a based on a fixed number that the admin will enter in a custom field (c1) multiply by another field that the admin will enter (c2)
d, f= the same as a and b, are numbers that will be inserted by the admin
g = is a another mini-formula based on the values that the simple user will insert, let’s say g1 and g2. After that, the g1 will have to multiply with a fixed value that is inserted by the admin (g1.1) and the g2 will have to multiply with another fixed value that is introduced by the admin (g2.2)
So the formula will be something like:
Formula = a + b + (c1 x c2) + d + f + ((g1 x g1.1) + (g2 x g2.2))
Also, if would be nice if the admin could add some fixed custom values that could be included in the formula.