- Posts: 56
- Thank you received: 0
multiply custom field price per days
- p.barg
- Topic Author
- Offline
- Senior Member
Less
More
1 year 4 months 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
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.
- Tuan Pham Ngoc
- Away
- Administrator
1 year 4 months 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)
2. Edit event, enter that data
3. You can now use [NUMBER_DAYS] tag in the formula.
That should work
Tuan
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
Less
More
- Posts: 56
- Thank you received: 0
1 year 4 months 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
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.
- Tuan Pham Ngoc
- Away
- Administrator
1 year 4 months 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 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
Less
More
- Posts: 56
- Thank you received: 0
1 year 4 months ago #158115
by p.barg
Replied by p.barg on topic multiply custom field price per days
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
1 year 4 months ago #158116
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic multiply custom field price per days
Great. Thanks for confirming
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.