Pinpoint World Support
Forum Replies Created
-
Hi,
To disable the scroll of the calendar you have to? edit the file dopbsp/assets/js/jquery.dop.frontend.BSPCalendar.js and? comment on the lines that call the function DOPPrototypes.scrollToY.
We will not remove these scrolls in future updates. If you want to keep them removed, back up the changes.
Best Regards,
Support Team
Forum: Plugins
In reply to: [Pinpoint Booking System - #1 WordPress Booking Plugin] Error 500Hi,
Please contact us via the page here https://pinpoint.world/contact so we can investigate the 500 error.
Best Regards,
Support Team
Hi,
If you use the plugin with WooCommerce, the forms will not work as all the contact information is collected at checkout by WooCommerce and then added to the reservation.
We recommend that you use the plugin with WooCommerce if you want to add a billing option, as our plugin can’t create them automatically.
Best Regards,
Support Team
Forum: Plugins
In reply to: [Pinpoint Booking System - #1 WordPress Booking Plugin] Color of the dayHi,
The lines to edit are 606 and 614.
Best Regards,
Support Team
Forum: Plugins
In reply to: [Pinpoint Booking System - #1 WordPress Booking Plugin] Color of the dayHi,
The font and style of the plugin can be editing the template files located booking-system/templates based on what template you use. To keep the changes to these files for future updates, you can move them to wp-content/dopbsp-templates.
For you case you have to edit the color on the lines 690 and 698.
Best Regards,
Support team
Hi,
One more thing to add about this option is that it will only work for new reservations only, it will not update the calendar with old information.
Best Regards,
Support Team
Hi,
We are not sure we understand. Do you want to display the excerpt from a form field after the booking is made?
If so, you can display the form field in the body of the hour. You have to go to Pinpoint Booking System -> Forms -> Select the form -> Expand the form field you want -> Enable Add field to day/hour body
Best Regards,
Support Team
Forum: Plugins
In reply to: [Pinpoint Booking System - #1 WordPress Booking Plugin] Error 120Hi,
Do you have the latest version of the plugin installed? The error indicates that some information regarding the reservation can’t be validated.
Please write us here: https://pinpoint.world/contact to investigate further and apply a fix.
Best Regards,
Support Team
- This reply was modified 1 year, 3 months ago by Pinpoint World Support.
Hi,
This issue is caused because the availability isn’t saved correctly in the database.
There are 2 things that you can try:
- Go to Pinpoint Booking System -> Tools and run Repair Database and text.
- Reset the availability of the calendar and remake the availability.
If none of these two options work, please contact us via the contact form https://pinpoint.world/contact
Best Regards,
Support Team
Hi,
Here is the function, we have run a couple of tests and it worked:
{ // 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; }
Best Regards,
Support Team
- This reply was modified 1 year, 5 months ago by Pinpoint World Support.
Hi,
Sorry for the delay, we tried to find a solution for you and also had to test it ourselves.
What you can do is in the foreach, the loop you go tough the cart items you should add the following code:
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); }
In the $data you can find all the information regarding the reservation for that cart. This includes the $data->check_in and $data->check_out dates.
Hope this helps.
Best Regards,
Support Team
Hi Florian,
Please contact us via the contact form here, https://pinpoint.world/contact. We need to check the plugin files, as we can’t replicate the error.
Best Regards,
Support Team
Hi,
What version of PHP are you using?
Best Regards,
Support Team
Hi,
You will have to modify the file assets/js/frontend.js and at line 48 add the following code:
price = price.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
Best Regards,
Support Team
Hi,
Usually the reason the booking is not created in Pinpoint from Google is that the slot in the calendar is not available or booked.
If you think that is not the issue, you need to enable the WordPress Debug to see if any errors or warnings appear. Please send us the debug.log to [email protected] to investigate further.
Best Regards,
Support Team