Sum of two fields formula with conditional formulas

Can a formula field be created that contains the sum of two formula fields with conditional formulas and the result of the calculation is correct? The test I did gives the wrong result… and I wonder if it is wrong because it can’t be done.

For example: an item has a price of 5,00 €.

If you buy 1 to 5 items the value is 5,00 € but if you buy more than 5 items the value is 5-((5*15)/100), that is, 4,25 €, with a 15% discount.

Can you add formulas that contain formulas?

That is, formula A contains a complex conditional formula and formula B another complex conditional formula like the ones mentioned above. And I create a formula C that adds formula A and formula B that contain those complex conditional formulas.

Formula A

(quantity_field_id_1 – quantity_field_id_2) + (quantity_field_id_3 *30.050605) + (quantity_field_id_4 *30.050605)

Formula B

IF (quantity_field_id_5 > 4) {
(((quantity_field_id_5 – 4) * 2) – quantity_field_id_6) * 3.005061
} ELSE {
0
}

FORMULA C

Formula A + Formula B

Thank you

  • This topic was modified 14 hours, 17 minutes ago by victormerino.
  • This topic was modified 14 hours, 8 minutes ago by victormerino.
  • This topic was modified 14 hours, 7 minutes ago by victormerino.
  • This topic was modified 14 hours, 4 minutes ago by victormerino.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer