EB custom fields calculation

  • Peter Cnops
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #36453 by Peter Cnops
EB custom fields calculation was created by Peter Cnops
Hi

It would be great if a custom field can calculate with the value from another custom field or EB database fields (like in messages and emails). For the website I'm working on at this time, just a few users make a reservation for more then 1 person. Therefor and because it's impossible to show a shopping cart for group reservations, I use only individual reservation.

If someone wants to make a reservation for 2 or 3, he has to pay for all registrants. As you cannot change the number of registrants in the shopping cart, it would be nice if the user can fill in the total amount for the event en get it multiplied with the number of extra registrants.
So in field A he selects the number of extra registrants, in field be he fills in the total amount for the event and EB multiplies field A and B en adds it to the total amount, like all other fee fields.

Possible already (didn't find out how) or in a next release?

Peter

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

More
11 years 6 months ago #36491 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: EB custom fields calculation
Hi Peter

In short, the extension does allows you to use the name of other custom fields in the fee formula. Maybe you haven't tried that feature yet ?

A basic example is that you have one dropdown allows users to choose the product and a textbox to allow users enter quantity, then in the fee formula of the textbox ustom field, you can use :


[FIELD_VALUE]*[EB_NAME_OF_DROPDOWN_CUSTOM_FIELD]

[FIELD_VALUE] will be replaced with the value users entered into the textbox
[EB_NAME_OF_DROPDOWN_CUSTOM_FIELD] will be replaced with the price corresponding to the prodcut users choose from dropdown.

Maybe you can give it a try to understand this feature ?

Tuan

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

  • Peter Cnops
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #36495 by Peter Cnops
Replied by Peter Cnops on topic Re: EB custom fields calculation
Hi Tuan

Great! This is what I need.
Thank you for the support.

Regards

Peter

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

  • Peter Cnops
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #36655 by Peter Cnops
Replied by Peter Cnops on topic Re: EB custom fields calculation
It seems that the calculation only works with textbox fields, not with dropdown (or any other field). Anyway, it does now what it has to do.

Peter

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

Moderators: Tuan Pham Ngoc