Custom fees and quantity problem

  • Patrick Foley
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #153447 by Patrick Foley
Custom fees and quantity problem was created by Patrick Foley
I am using a custom field with mutliple checkboxes that add up to create a total cost for the event. The event price is set to 0 as there is no basic fee. I am not using group registration. This works fine as along as the client selects the event and leaves the Quantity at 1 (class=form-control input-mini quantity_box). But if they select quantity > 1 (e.g. they are registering for two) the custom field value does not update in the shopping cart. 
I have tried using a custom field calcuation but I don't know how to access the event's quantity value. Hope this makes sense.

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

More
1 year 7 months ago #153467 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fees and quantity problem
Hello

Not sure how you would use event's quantity value. But I think you can try to use [CART_NUMBER_REGISTRANTS] tag in case you setup fee formula ?

Tuan

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

  • Patrick Foley
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #153504 by Patrick Foley
Replied by Patrick Foley on topic Custom fees and quantity problem
Hi
I tried this using [FIELD_VALUE]*[CART_NUMBER_REGISTRANTS] as the formula for custom field but it didn't work in checkout. Not a problem as I will just tell registrants not to book more than 1 for this event.

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

More
1 year 7 months ago #153505 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fees and quantity problem
Try to replace [FIELD_VALUE] with [NAME_OF_FIELD_IN_UPPERCASE]

For example, if name of the field is eb_price_options, then use this fee formula:

[EB_PRICE_OPTIONS]*[CART_NUMBER_REGISTRANTS]

Regards,

Tuan

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

  • Patrick Foley
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #153506 by Patrick Foley
Replied by Patrick Foley on topic Custom fees and quantity problem
It worked perfectly - many thanks!

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

More
1 year 7 months ago #153507 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fees and quantity problem
Great. Thanks for confirming

Tuan

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

  • Patrick Foley
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 7 months ago #153516 by Patrick Foley
Replied by Patrick Foley on topic Custom fees and quantity problem
Actually jjust to let you know this actually doesn't work - only if there is a single event registered then [CART_NUMBER_REGISTRANTS] is correct in the formula. If there are 2 events registered and the user updates quantity to 2 in one of them, the [CART_NUMBER_REGISTRANTS]=3 and the calculation fails.
I have reverted to advising client to only use quantity 1 for these events.

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

More
1 year 7 months ago #153518 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom fees and quantity problem
In case you want to count number of events in the fee formula and ignore quantity, you can use [CART_NUMBER_EVENTS] tag instead

Depends on how you want it to work, you can use the right tag

Tuan

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

Moderators: Tuan Pham Ngoc