Is there a simple way to do this calculation on a page without using PHP on output? I have a member_field with a value and a channel_field with a value and want to output
{member_field} * {channel_field} =
There is no direct way. I suggest you to install this module
Edit
If incase you have values to pass with comma separated (i.e., 5,00,000.05), You need to edit pi.math.php
file to add this code on line number 54.
// remove commas
$formula = str_replace("," , "" , $formula);
pi.math.php
and add this code on line number 54. $formula = str_replace("," , "" , $formula);
Commented
Jan 18, 2018 at 12:14
,
to use as decimal. You can change str_replace accordingly. Something like $formula = str_replace("," , "." , $formula);
Commented
Jan 18, 2018 at 15:07