Followed the manual and i wanted to start via testing where i added the test API of Mollie.
The following buttons are not clickable: Pay on Mollie (instant booking), I agree to the terms & conditions.
I’m waiting for a week without any response or solution and it became very frustrating.
Down below are the ticket-id’s
ID 2956?
ID 2953
]]>I am in the process of helping a small leisure rental company with an issue regarding coupons in conjunction with a booking from Pinpoint.
They would like to create coupons valid only for bookings on weekdays (Monday/Thursday).
A Pinpoint booking will continue to be handled as a Woocommerce product. So are the coupons.
Pinpoint support has provided me the code to get it to work, but now no other coupon codes are accepted (not in weekdays OR weekends).
Can you maybe help me out?
This is the given code:
{
// Set the coupon codes you want to restrict to weekdays
$coupon_codes = array('couponcode', 'anothercode', 'thirdcode');
$coupon_code = strtolower($coupon->get_code());
$found = false;
// Loop through cart items to check if the coupon code matches and the date is a weekday
foreach (WC()->cart->get_cart() as $cart_item) {
global $wpdb;
global $DOPBSPWooCommerce;
$reservations_data = $wpdb->get_results($wpdb->prepare('SELECT * FROM '.$DOPBSPWooCommerce->tables->woocommerce.' WHERE cart_item_key="%s" AND token="%s"',
$cart_item['key'],
$cart_item['dopbsp_token']));
foreach ($reservations_data as $reservation_data){
$data = json_decode($reservation_data->data);
if (in_array($coupon_code, $coupon_codes)) {
$the_day = date('D', strtotime($data->check_in));
error_log( print_r( $the_day, true ));
if (in_array($the_day, array('Mon', 'Tue', 'Wed', 'Thu'))) {
$found = true;
break; // No need to continue checking once we find a matching weekday
}
}
}
}
// If the coupon code is not valid for weekdays, set it as invalid
if (!$found) {
$valid = false;
}
return $valid;
}
As said, this code works for restricting given coupon codes in the array, but ALL other coupon codes are invalid with this code.
I appreciate your help, thanks in advance.
I am in the process of helping a small leisure rental company with an issue regarding coupons in conjunction with a booking from Pinpoint.
They would like to create coupons valid only for bookings on weekdays (Monday/Thursday).
A Pinpoint booking will continue to be handled as a Woocommerce product. So are the coupons.
Now I have a code that works with Woocommerce booking, but these hooks are different in the shopping cart.
Will you help me make this code correct using the right hook(s)? The code is shown below.
// Coupon validity checking
add_filter('woocommerce_coupon_is_valid', 'coupon_week_days_check', 10, 2);
function coupon_week_days_check($valid, $coupon)
{
// Set the coupon codes you want to restrict to weekdays
$coupon_codes = array('couponcode', 'anothercode', 'thirdcode');
$coupon_code = strtolower($coupon->get_code());
$found = false;
// Loop through cart items to check if the coupon code matches and the date is a weekday
foreach (WC()->cart->get_cart() as $cart_item) {
if (in_array($coupon_code, $coupon_codes) && isset($cart_item['booking']['_date'])) {
$the_day = date('D', strtotime($cart_item['booking']['_date']));
if (in_array($the_day, array('Mon', 'Tue', 'Wed', 'Thu'))) {
$found = true;
break; // No need to continue checking once we find a matching weekday
}
}
}
// If the coupon code is not valid for weekdays, set it as invalid
if (!$found) {
$valid = false;
}
return $valid;
}
// Coupon validity checking error message
add_filter('woocommerce_coupon_error', 'coupon_weekdays_error_message', 10, 3);
function coupon_weekdays_error_message($err, $err_code, $coupon)
{
// Set the coupon codes you want to restrict to weekdays
$coupon_codes = array('couponcode', 'anothercode', 'thirdcode');
$coupon_code = strtolower($coupon->get_code());
if (intval($err_code) === WC_COUPON::E_WC_COUPON_INVALID_FILTERED && in_array($coupon_code, $coupon_codes)) {
$err = __("Code $coupon_code is uitsluitend te gebruiken voor boekingen op ma/do.", "woocommerce");
}
return $err;
}
In this, I think the combination hooks [‘booking’][‘_date’] is the culprit; but I can’t find the right hooks(s) in the source code.
I have already tried these alternatives:
[‘reservation’][‘_date’]
[‘appointmend’][‘_date’]
Thanks in advance!
Do I need to do anything in addition to make this variant selection appear?
Thanks in advance!
]]>See yourself on your demo also on your live website also ( https://pinpoint.world/demos/wordpress-booking/calendar/ ) >
i recorded video – 4mb download ( i record also on your demo on website, this is on all versions of calendar )
https://easyupload.io/qroftr
This is ASAP – it is not user friendly
]]>i just installed the pinpoint plugin and was just testing a little bit. Suddenly i can only see the calender. The sidebar is completely missing. What did I do wrong? i think i have undone all settings i made. Could you please help?
]]>Might be a newbie question, but I can’t find a right solution.
I’m a considering using this plugin for our site. This is an online spanish academy. I need the calendar to provide the potential students a way to see available time for hourly lessons. If a student buys say 5 lessons together, can he book all 5 lessons at once if he wants to book in multiple days? Say for example, monday, wednesday and friday, from 10pm to 11pm. Is this possible?
Thank you very much,
Leandro
I tried the steps found here: https://www.ads-software.com/support/topic/pinpoint-booking-plugin-sync-with-google-calendar/
Unfortunately, it seems the calendars have not synced.
This is what I did:
I logged into my gmail account, went into Settings, and clicked on my calendar under the “Settings for my calendars” section. I went to the “Integrate calendar” section and copied the url for “Secret address in iCal format”.
I then logged into my website, I went to Pinpoint Booking System > Calendars > I clicked on my calendar > went to “Edit calendar settings” > scrolled all the way down to “Google Calendar Sync settings” > enabled “Enable Google Calendar Sync”, and then entered the iCal url in the “Feed URL” textbox. (I waited until all settings were saved)
Afterwards, I booked an appointment (please see the link). The appointment showed up in the wordpress backend as “Pending” under Pinpoint’s “Reservations” page. I did this yesterday (2-22-20) in the afternoon (around 2pm or so). Today, I went to check my google calendar and did not see any appointment. I logged back into my website and under Reservations, I also did not see the Pending reservation (it just disappeared).
I understand it takes a while sometimes for Google to sync things on their end (and you guys have no control over that), but it’s been 24 hours already and nothing synced, and my pending reservation just disappeared.
I was wondering what I may have did wrong?
(also, thank you so much for this awesome plugin and for all the support! I’ve used it previously and it works wonders)
]]>I have disabled the option for Instant Approval, but when users book a reservation, it is still instantly approved. My client wants it so that she can be the one to manually approve the reservation.
I have enabled payment on arrival (which is what the client wants), and disabled instant approval under the “edit calendar payment gateways” tab.
Why is that happening?
Another Issue
This may or may not be related to the issue above, but the reservations are not syncing with my client’s google calendar.
– Google Calendar Sync has been enabled
– The “Feed URL” is: https://calendar.google.com/calendar/ical/californiadawnsportfishing%40gmail.com/private-1eefe2a58512e7b0fa3bf3ea403f4ef3/basic.ics
– The sync time is: 300.
– The iCalendar URL is: https://dawn.nerdxing.net?dopbsp_api=true&calendar_id=1&type=ics&key=x7bBpyHGdABcmsZUwdLkAf9dRnfyneaA-1
Any help? Thank you so much.
]]>