Questions tagged [math]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
96 views

Hide Grid row based on date

I am using the Grid field built into EE, 2.8.1, to display event dates. In the Grid column I have an event date field to let you know when the event starts. What I would like to do is have this date ...
johnHoysa's user avatar
0 votes
1 answer
38 views

How to display the lowest number from multiple fields - PHP?

I have channel entries with around 20 number fields, each containing a price: {price_1}, {price_2}, etc. I need to display the lowest of these prices in the entry's template but am finding it ...
Zack's user avatar
  • 75
0 votes
1 answer
66 views

Using plugin results within channel tags

I use this code using exp:math plugin: {exp:channel:entries channel="planilla_de_indicadores" limit="10"} {exp:math formula="([1] / [2]) * 100" parse="inward" params="{ps_talleres2}|{ps_talleres1}" ...
Martin Pede's user avatar
1 vote
1 answer
593 views

Adding up (SUM) the values of a field in an entries loop

I have an ee entries loop returning a bunch of entries. Each entry has a custom field holding a numerical value. I would like to add together the values of that field at the end and output the total. ...
KoalaKid's user avatar
  • 487
0 votes
1 answer
79 views

Low Variables in cartthrob arithmetic

Hi is there any posibility to get this working? {exp:cartthrob:arithmetic expression="{option_price_numeric} -({option_price_numeric} * {exp:low_variables:single var='early_bird_discount'} / 100)"} ...
Pibble's user avatar
  • 63
0 votes
1 answer
170 views

2 fields with numbers...need to add them together for sorting entries by that number

I have a channel with 2 fields, "New Square Footage" and "Remodeled Square Footage". I'm displaying both of these numbers in my template. I want to be able to sort the entries by the total of both of ...
Mike Lohrman's user avatar
1 vote
2 answers
171 views

Arithmetic with forms

I have a form that will help a user build up a quote for fees to move house. The first page of the form will ask the user to select their nearest location from a drop down list, they will then enter ...
doubleplusgood's user avatar
1 vote
2 answers
308 views

Can I add together the values of the cells in each Matrix row?

The Matrix docs say: :average, :lowest, :highest, and :sum These tags return the average, lowest, highest, or sum value of a given numeric column in your Matrix field. I have a matrix field ...
Johann Dyck's user avatar
2 votes
1 answer
107 views

Populate channel field based on other fields arithmetics

Let's assume I have a “products” channel which contains 3 fields: price(number), discount(integer 1 to 100), discounted_price(number). Is there a way to populate the discounted_price field in CP, ...
Milksamsa's user avatar
  • 236
2 votes
2 answers
898 views

Calculating a value with Stash and MX Calculator

I'm trying to do some basic math using a Stash Get var and MX Calculator. Any recommendations? I'm sure my lack of understanding of parse order strikes again. I can get the variable using: {exp:...
Anson LeClair's user avatar