Jan Maat
Forum Replies Created
-
In the next release this function will be part of the plugin selectable with an option.
This option must first be set by the administrator.Hi,
Have a look at https://biostall.com/how-to-allow-editors-access-to-a-single-plugin-in-wordpressThe corresponding code of my plugin is:
public function add_plugin_page() {
// This page will be under “Settings”
add_options_page(
‘Settings Admin’, ” . __(‘WP Availability Calendar & Booking Settings’, ‘jm_avail_booking’) . ”, ‘manage_options’, ‘jm_avail_booking-setting-admin’, array($this, ‘create_admin_page’)
);
}At this moment I have no access to my development system so I cannot try it myself
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] prices weekend / week or midweekIn the present implementation it is not possible but your request make sense. I put it on the list for future enhancements.
It puzzles me a bit how to display the different values in the calendar and have the following proposal.
The day prices remains at it is, displayed in the calendar on each day. I add three columns to the right of the calendar, one with the full week price, one for the weekend and one for the midweek. So on each row it represents the prices for the corresponding week.
Does this solution fulfills your requirement?About the planning, a release end september.
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] Adjust width of single calendar.Hi,
The possibility is not built in to the plugin but follow the next steps.In the admin panel go to Appearance→Editor and add (at the end of the file)
.table_pos{width: 500px;}
and the width of the calendar is now 500px.
Regards,
Jan
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] LanguagesNo more questions asked so I mark this topic as resolved
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] LanguagesNo more questions asked so I mark this topic as resolved
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] Custom fields for reservationsNo more questions asked so I mark this topic as resolved
Hi Oliver
The working day restriction is added in version 1.1.0
Some information:
Two major functions are added:
1. Restrict Reservations (x(working)days from submit date)
2. Change in the definition of the ContactForm7 check-in and check-out fields.In the release 1.0.7 and earlier the date fields are defined as [date* start_date….] and [date* end_date…]. With the plugin ContactForm7 Datepicker a datepicker was added. Unfortunately this plugin mall functions with the latest release of ContactForm7 and no support seems to be given.
The built in datepicker of ContactForm7 lacks an adequate control of the datepicker options needed for the -Restrict Reservations-.
Due to the above the plugin now loads the WP Datepicker. To avoid interaction with the CTF7 datepicker the field types must change to text. [text* start_date]Forum: Plugins
In reply to: [WP Availability Calendar & Booking] Custom fields for reservationsHi Oliver ,
Your understanding is correct, you cannot add any fields to the database. But the output (click on submit) of ContactForm7 is twofold, it stores the fixed fields in the database and it sends all fields (including the fixed fields) in an email. For the latest you have to configure the ContactForm7 email tab as normal.
So the owner receives all information, the database also has the fields required to present the calendar.No I do not know any other plugin that would be customisable in the way described.
Regards,
Jan
Hi Ozimn,
A short term solution is to add in the ContactForm 7 settings a value for the mindate:
Checkin Date – [date* start_date id:start_date min-date:10 ]
In this way the coming 10 days (weekend days included) are blocked in the calendar.
For the longer term I look into your request to include this into the plugin and also change it to working days.
Regards,
JanForum: Plugins
In reply to: [WP Availability Calendar & Booking] Custom fields for reservationsHi Ozimn,
The fields stored in the database cannot be customize.
The fields added to the database are:
Your Name – [text* your-name]
Your Email – [email* your-email]
Checkin Date – [date* start_date id:start_date ]
Checkout Date – [date* end_date id:end_date ]
Telephone Number – [text* your-phone]
Country – [select* your-country ….]
Correspondence language – [select* your-language “nl””en”]
The fields are in the syntax of ContactForm 7. If a field is not present the corresponding database field remains empty.
Of course you may add different fields only to be part of the email send. The labels as shown to the user can of course be customized.
Regards,
JanForum: Plugins
In reply to: [WP Availability Calendar & Booking] Integration with Contact Form 7Hi,
To be sure I checked my code but the only reason the default value appears in the CF7 is when the “list of Rooms” in the plugin setting is empty.
Please check in the Settings →WP Availability Calendar & Booking Settings if the “List of Rooms” has the rooms names. Format: name_1,name_2,name_3Regards,
Jan
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] LanguagesHi Michel,
Two options.
1. You send me the PO file and I will include the German language.2.From the PO file you must generate a MO file. The CodeStyling Localization plugin is a good option for that.
I prefer the first option.
Regards,
Jan
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] Curly bracket in footerHi Drazen,
Problem solved in the released version 1.0.8
Regards,
Jan
Forum: Plugins
In reply to: [WP Availability Calendar & Booking] Warning message: Array_combineHi Michel,
The warning is solved in the just released version 1.0.7.
Thanks for pointing out.
Jan