Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Ran
  2. Form2Content Lite & Pro
  3. Thursday, 25 October 2018
  4.  Subscribe via email
I would like yo calculate the SUM lf two numeric fields, I have tride using smarty math but with no results. Any solution for that?
Responses (1)
Accepted Answer Pending Moderation
Good morning Ran,

Good question, my first suggestion would be Smarty. Second would be JS or PHP which you can add to your template. Only problem is that I'm not a programmer.

With Smarty Math (https://www.smarty.net/docsv2/en/language.function.math.tpl) I see the issue is defining the variables. They also suggest to use PHP (for performance). I will see if Julien or someone else has a suggestion.

UPDATE: Smarty3 docs. https://www.smarty.net/docs/en/language.math.tpl

Does this work? {$foo*$bar} => {$YOUR_FIELD1+$YOUR_FIELD2}

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.