Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Same as you would adf it in pure maths:
    sometotal+sometotal*percentage

    Thread Starter rotulcopy33

    (@rotulcopy33)

    It does not work:

    {uni_cpo_ancho_pvc}*{uni_cpo_alto_pvc}*{uni_cpo_grosor_pvc_x1}*{uni_cpo_pvc_caras_x1}+{uni_cpo_price}+{uni_cpo_opcionales_pvc}*15%

    Plugin Author moomooagency

    (@moomooagency)

    “%” is not valid math operator. You have to write it in valid maths. Usually when you want to add 15% you do like this: smth+smth*15/100

    Do you understand this?

    Thread Starter rotulcopy33

    (@rotulcopy33)

    I get it, but I put this:
    {uni_cpo_price}*15/100
    and does not calculate it well

    Plugin Author moomooagency

    (@moomooagency)

    What do you mean? Please, explain.

    Plugin Author moomooagency

    (@moomooagency)

    Is math incorrect?

    Thread Starter rotulcopy33

    (@rotulcopy33)

    Well, it doesn’t calculate 15% of the {uni_cpo_price}
    I put it like this: {uni_cpo_price}*15/100
    You should calculate 15% more on the base price.
    Independent of previous calculations.
    I just want you to add 15% more to the {uni_cpo_price}

    {uni_cpo_price} * 1,15

    Plugin Author moomooagency

    (@moomooagency)

    it doesn’t calculate 15% of the {uni_cpo_price}
    It does, but you clearly mix the things.

    If this var equals 100, then formula

    {uni_cpo_price}*15/100

    Evaluates to “15”.

    If you need add this value, then you need formula like I wrote.

    What exactly you do not understand?

    Plugin Author moomooagency

    (@moomooagency)

    Example: 200+200*15/100 = 230

    I have a similar problem. I want to calculate a percentage of the total price and add it to the price – total price + fee – when the customer chooses “express delivery”. I have a NOV-formula, that calculates correctly, but it does’t add it to the total amount itself. How do I go about that?

    Have a select/dropdown menu where I give the customer the opportunity to choose normal delivery (SEK 0) or Express delivery where the price is SEK 195 (a start-up cost – that cost is adding to the total price).

    Then I need to connect the start-up cost to my NOV-formula that calculates the extra percentage fee. But that NOV calculation does not add to the total price. Do I have to add_filter or something else? Tried conditional logic but it does not work.

    Plugin Author moomooagency

    (@moomooagency)

    Then you need to use “Formula conditional logic” and check if user selected “express delivery” use another formula where you add fee to total price. This should work.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Percentage in the formula’ is closed to new replies.