multiply custom field price per days

  • p.barg
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 4 weeks ago #158106 by p.barg
multiply custom field price per days was created by p.barg
Hello,
I would like to set up a custom field (radio) with a price. This price is per day.
Is there a way to determine the duration of the event (days) and use a variable for this in the price field for the custom field?

Thanks in advance,

Petra

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

More
11 months 4 weeks ago #158109 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic multiply custom field price per days
Hi Petra

No, there is not variable like that. However, I think there is a workaround :

1. Follow instructions at eventbookingdoc.joomservices.com/basic-s.../event-custom-fields , setup event custom fields. Create a field to allow number days, like (Note the show attribute, it tells the system do not display that event custom fields for the event, it is just uses for calculation purchase)
Code:
<field name="number_days" type="text" label="Number Days" size="50" description="Enter Number Days of Event" show="0"></field>

2. Edit event, enter that data

3. You can now use [NUMBER_DAYS] tag in the formula.

That should work

Tuan

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

  • p.barg
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 4 weeks ago #158113 by p.barg
Replied by p.barg on topic multiply custom field price per days
Hi Tuan,

thanks for your workaround proposal! I had thought about such a solution, but was unsure if that would work...
Now I'm trying to implement it. I've added the field to the fields.xml file, but then I realized that the tab extra information is not there if I open an event.
I've worked with additional custom fields before and never had that issue. Am I overlooking a configuration maybe?

Thanks, Petra

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

More
11 months 4 weeks ago #158114 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic multiply custom field price per days
Hello Petra

Please go to Events Booking -> Configuration, make sure you have Event Custom Field config option set to Yes and it should be fine

Tuan

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

  • p.barg
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 4 weeks ago #158115 by p.barg
Replied by p.barg on topic multiply custom field price per days
Thanks Tuan! I knew I was overlooking something...
In fact, the German translation of "Event Custom Field" was overlooked by me as I was looking for "custom fields"....

Now, everything is working perfectly

Petra

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

More
11 months 4 weeks ago #158116 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic multiply custom field price per days
Great. Thanks for confirming

Tuan

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

Moderators: Tuan Pham Ngoc