Fee Field Generator

  • Marc Kettemann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 7 months ago #102838 by Marc Kettemann
Fee Field Generator was created by Marc Kettemann
Hey Tuan,

would it be possible to modify the fee field generator in order to only generate values which are filled with information (price) with in the custom fields for events (xml-file).

See attachment - it is quite annoying to remove all unused values.

Thanks a lot.

Best greats from germany
Marc

Please Log in or Create an account to join the conversation.

  • Marc Kettemann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 7 months ago #102848 by Marc Kettemann
Replied by Marc Kettemann on topic Fee Field Generator
Hey Tuan,

I did it by myself. Dirty but it works.
Maybe you can find a better solution for a future release?

Greats
Marc
Code:
$feeValues1 = array(); $fieldValues1 = array(); for ($i = 0, $m = 0, $n = count($feeValues); $i < $n; $i++){ if ($feeValues[$i] != 0){ $feeValues1[$m] = $feeValues[$i]; $fieldValues1[$m] = $fieldValues[$i]; $m++; } }

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #102861 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Fee Field Generator
Hi Marc

Please use this workaround/solution you are having for now. When I have sometime, I will review this requirement and make improvement to the current plugin if it is possible (honestly, this is not a very widely used plugin)

Tuan
The following user(s) said Thank You: Marc Kettemann

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc