Hi:
My client rents out items/equipment to people on vacation, with a 1-week minimum on all items.
Currently they select the time period for rental on the individual product pages using a booking plugin, but that means you can’t go from a Wishlist directly to the shopping cart, or quickview to shopping cart, etc. You have to go to each individual product page to select the dates.
They would like customers to be able to select the rental dates at checkout. Can we use your plugin to select 1 or more weeks at checkout?
If so, how would I do that?
If needed, do you do custom work?
Thanks!
Hi
how to disable past dates and make the user chose only from today
]]>I have inherited support for a website using Polylang Pro to support the website in English, German, and French.
We are using the WP DatePicker on our Contact Form 7 contact pages.
<div class="BoxcontactTwoColumnL">
[text start-date class:wp-datepicker placeholder "Ankunftsdatum"]
</div>
<div class="BoxcontactTwoColumnR">
[text end-date class:wp-datepicker placeholder "Abflugdatum"]
</div>
The English version works well, but for the French and German versions the DatePicker works, but once a date is selected the month is showing in the text input as ’17 undefined 2023′.
]]>I need custom fields in order to set occupied periods on calendars (bookings), I should have a meta key for “from” date and for “to” date, so that I can filter by daterange. Is it possible?
]]>In version 2.0.7 (which has fixed a significant problem for me – thx), I noticed a ReferenceError related to \wp-datepicker\js\wpdp_auto_script.js
Here’s the text, copied from the console:
ReferenceError: wpdp_obj is not defined
at wpdp_refresh_5047 (wpdp_auto_script.js?ver=202308080801:23:20)
at wpdp_auto_script.js?ver=202308080801:166:3
wpdp_refresh_5047 @ wpdp_auto_script.js?ver=202308080801:23
(anonymous) @ wpdp_auto_script.js?ver=202308080801:166
Didn’t notice any functional issues associated with this but it displays repeatedly in the console when I’m logged in as admin and in the dashboard.
]]>I need a help with a wp datepicker. The thing what i want is – customer in checkout page can choose the pickup and delivery date. After choosing the date, then in cart summary shows the calculation – example, I choose from 24.07 – 26.07, then in the calculation shows 2days and multiply the price of the product x2. I’ll add a screenshot what I need.
Functions.php code – https://pastebin.com/sy4Vh2MP
Review-order.php code – https://pastebin.com/qc3QbpGW
I have also tried like this – functions.php – https://pastebin.com/3KavWcGe
The calendar appears, but no other price appears at Total if I select, for example, 3 days. For example, the product costs 1 EUR, if I want to rent it for three days, then I would have to show up at Total like this – 3 EUR (1 EUR x 3 days). I tried to turn on the DEBUG mode, but after selecting the dates, the data from the POST is not obtained at all.
Still doing testing on my localhost test website — WordPress 6.2.2 running PHP 8.1. If you code an HTML field, using hasDatepicker as a 2nd class, it disables WP Datepicker on all fields within the form. For example, try this:
<input type="text" class="date-field hasDatepicker" />
where “date-field” is specified in the Settings. (Doesn’t matter if hasDatepicker is specified in settings or not.)
Note that this worked correctly in versions up through 1.9.9, but now seems to disable WP Datepicker. On the other hand, if I enter this:
<input type="text" class="date-field anyclass" />
WP Datepicker works fine.
]]>Love your plugin but trying to get new versions to work with my code. So I set up a local vanilla (XAMPP Windows 10) site to experiment with it. I’m running WordPress version 6.2.2, Theme: Twenty Twenty-Three, with PHP 8.1. Installed WP Datepicker 2.0.5.
At the bottom of the Settings page I got this Fatal Error:
Fatal error: Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, string given in C:\xampp_clients\test-new-plugins\wp-content\plugins\wp-datepicker\inc\functions.php:962
]]>PHP Warning: Undefined array key "HTTP_HOST" in /chroot/home/.../wp-content/plugins/wp-datepicker/index.php on line 28
I fixed this by doing this:
$HTTP_HOST = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (string)parse_url(get_option('siteurl'), PHP_URL_HOST);
$wpdp_actual_link = $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$HTTP_HOST$_SERVER[REQUEST_URI]";
Maybe this could be added in the next release? Thanks!
]]>I have 2 selectors. Only selector that has been placed first is working. Replacing selectors again selector that is in first place is working. So selectors are correct.
]]>Hi, I’m a bit lost with the pro plugin.
First of all, free version is 2.0.2, but pro plugin comes as 2.0.1. If i try to update the plugin with your own “automatic updates” plugin, nothing happens. If I update the pro plugin via wordpress plugins, it suddenly becomes the free version again.
Second, I have two language versions german and english and I would like to show days and months in english on the english page.
Third, my backend is in french, although site language is german.
Forth, I tried to contact you via email and sent you my skype id, but didnt get an answer.
As you see, I need some support urgently. Would be nice if you could get back to me as soon as possible. Thank you in advance!
]]>Why is the datepicker selecting a date 6 years ahead?
]]>DatePicker disappears in the Next/Previous buttons “icons” in mobile format. It looks like something related to jQuery.
Desktop: https://ibb.co/0Xxk0M9
Mobile: https://ibb.co/CJbxmxm
Any hint?
Thanks.
]]>Hello Fahad,
i have your pluginn to wordpress datepicker.and I have a question.?
It is possible to set the output form in another format, they need output yy-mm-dd?
Daniel Ace
]]>In my Datepicker Pro I have disabled all Mondays with the following code:
function (date) { var day = date.getDay(); return [(day != 1)]; }
But now I need to disable also a specific week. I don’t know how to do it. In the plugin settings I select “Disable a specific set of dates”, but nothing happens. I can’t find any code to work with it.
]]>Hi! Our client would like to know if it is possible to change the time picker to standard time instead of 24-hour military time. There would also need to be a way to display a.m. and p.m. We have the free version. Thank you!
]]>I have two forms in two different languages, how can I set the date picker to work in the right language?
]]>Hello,
I have a french language in admin panel on plugin setting page. Switching to english doesn’t help. How do I switch the language in admin panel. Thanks in advance.
]]>Hi
is there a way to put it on woocommerce checkout page?
Thnaks
Best
SA
Hello, We are selling Christmas-based product. So we want people can select date 2021 November 24 to Dec 25 then people will not able to book other any date this year or next years, months. Can you provide the custom function code for it? Thanks
]]>Css for Wp-Datepicker interferes with the DIVI them admin area.
]]>
Hi Fahad,
A client of mine uses your plugin. While running a backup with BackupBuddy, it reported a JS error:
And in Chrome’s Developer Console:
Looking at wpdp_auto_script.js
, lines 52 and 53 are missing the +
concatenation operator:
if ($('input[data-original_id='datum']').val()!= "") {
$('input[data-original_id='datum']').attr('data-default-val', $('input[data-original_id='datum']').val());
}
Apart from these three instances, there have been three more on lines 154 and 155.
Changing it to the following got rid of the error:
if ($('input[data-original_id=' + datum + ']').val()!= "") {
$('input[data-original_id='+ datum + ']').attr('data-default-val', $('input[data-original_id='+ datum + ']').val());
}
You can find the full fixed content of wpdp_auto_script.js
here.
Also, consider minifying your JavaScript and only execute it on pages where it’s actually needed to prevent conflicts.
]]>Hi,
We use WP datepicker within contact form 7,
and we need to have translated months and days names from primary language to secondary English.
screeenshot – primary language: https://snipboard.io/KCsM1V.jpg
So, we need to have month / day name for second language translated
– shown as: “August – Mo – Tu – We – Th …” etc.
We use WMPL for second language, and I scanned plugin for strings, but it still doesn’t show day & month names: https://paste.pics/DF1XE
Help on how to resolve this would be highly appreciated.
Best regards and have a good day!
]]>Hi,
I’m using the Version 1.9.1. Some Js issues appears in the console and datepicker doesn’t display anymore.
line 52 and line 141 in the wpdp_auto_script replacing the simple quote by double quote seems resolves the problems.
Hi There
Is it possible to have a different date format shown to the user for selection purposes, while a different format is actually sent behind the scenes?
– MM/DD/YY needs to be submitted with form (which I have set as the date format).
This date format needs to be submitted for the form to work.
– A selected date format DD/MM/YY needs to be visible to the user.
Currently both submitted and visible format are MM/DD/YY.
You can view date picker in use here: hoteldebrett.com
Thanks
Regan
Hi,
1/ How can the [my-wp-datepicker] tag output “null”, when no date has been filled out by the client ?
2/ I can’t make the “default date” to “today”: it does not output today’s date.
great plugin !
thanks
]]>Hi Fahad,
thank you for this easy to use plugin.
What I couldn’t find yet in the plugin installation/ descriptions:
I have two input fields “Start” and “End-Date” who should be connected.
Is it possible to manage a date range with your plugin?
And is there an Option to set only read / no edit keyboard in mobile?
Best regards,
Sebastian
Hello!
I have 2 datepickers on same page. Is it possible to set different default date for each?
Messes with drop down toggle menus in mobile devices. Other devs added snippet to searchform.php in Avada theme and then added that to Child theme. Menu on mobile device stops working on that theme and a few others I tested.
The code they used was as follows
<form role="search" class="searchform" method="get" action="<?php echo esc_url_raw( home_url( '/' ) ); ?>">
<div class="search-table">
<div class="search-field">
<input type="date" value="Y-mm-dd" name="s" class="s" placeholder="<?php esc_html_e( 'YYYY-MM-DD', 'Avada' ); ?>" required aria-required="true" aria-label="<?php esc_html_e( 'YYYY-MM-DD', 'Avada' ); ?>"/>
</div>
<div class="search-button">
<input type="submit" class="searchsubmit" style="font-size:16px"><i value="" />
</div>
</div>
</form>
This unfortunately breaks everything. Need to hook it in from functions
]]>Hi there
Thanks for the plugin!
I’m trying to format date as 2012-02-12 (this is how it is inside the database)
As you linked in your help page, it should be yy-mm-dd
https://api.jqueryui.com/datepicker/#utility-formatDate
But then I put this format yy-mm-dd (or even “yy-mm-dd”, tried with both options), in DateFormat field inside the plugin setting
And then created a form field using GET with this code
<form method="GET" action="/that-page/">
<div>
<input type="text" class="datepicker" name="thedate">
</div>
<div>
<button type="submit" name="enviar" value="send">send</button>
</div>
</form>
then it bring me this in the URL
?thedate=02%2F12%2F2021
How can I turn this to
?thedate=2012%2D02%D12
Thanks a lot
Lucas