Skip Navigation

[Gelöst] Repeater Sum

This support ticket is created vor 5 Jahre, 8 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Christian Cox vor 5 Jahre, 8 Monate.

Assisted by: Christian Cox.

Author
Artikel
#922104
Screen Shot 2018-07-07 at 5.17.49 PM.png

I am trying to use the text field with repeater and then have them show in a table (I can do that part) But I want the values from the repeater field to sum up into a cell by itself. How could I go about doing that?

#922241

Hi, calculations like this are tricky in a View for several reasons. It may be possible with some custom code, like you can find in this example in another ticket: https://toolset.com/forums/topic/count-of-custom-field-if-it-has-an-entry/

That example only works in very simple applications, and can quickly become unmanageable with multiple columns and multiple totals, or split across multiple pages of results, or updated with AJAX. If you add conditional HTML into the mix, the problem becomes more difficult to resolve. In those situations, more complex custom code is required, which falls outside the scope of support we offer here in the forums.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.