Questions tagged [woocommerce-bookings]

To be used for Woocommerce Bookings plugin related questions

Third party official Woocommerce Bookings plugin.

This powerful extension allows you to sell time or date-based bookings, adding a new product type to your WooCommerce site. Perfect for those wanting to offer appointments, services or rentals.

169 questions
2
votes
1 answer

Add to cart bookable product by URL - WooCommerce Bookings

I'm using Woocommerce Bookings How to add to cart bookable product by URL? /?add-to-cart=[n.product] How can I pass an avaiable date with variations? Thanks
2
votes
1 answer

Get Base Price in WooCommerce Bookings

I have a product in WooCommerece that has a display and base price. The following code is used: global $woocommerce; foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $cart_item ) { $productID = $cart_item['product_id']; …
Colin
  • 675
  • 1
  • 11
  • 32
1
vote
1 answer

Extra field on order

I have plugin that adds custon data field to order called "delivery_time". Plugin also add extra product in cart as an deposit. Now custom data is added to every product including that extra product. Goal is to only have "delivery time" field only…
Ville
  • 105
  • 2
  • 2
  • 8
1
vote
0 answers

WordPress error popup on custom admin page after upgrading from 5.4

I inherited a site that was grossly outdated and have been systematically upgrading the WP Core and its plugins so that it is mostly up to date. However I am now receiving and error on one of my custom admin pages that I have been unable to debug…
1
vote
1 answer

add wait before add action function is run

I am sending extra Mail after new woocommerce order. I am using woo commerce_new_order hook. Problem is that when the email arrives it hasn't had product info. I think that woocommerce_new_order hook fires before everything are stored in the…
Ville
  • 105
  • 2
  • 2
  • 8
1
vote
2 answers

How to add to cart Woocommerce Booking Product?

I need to adding to cart woocommerce booking product, if i writing this code, i have false Or where normal documentation for this plugin? global $woocommerce; $added = $woocommerce->cart->add_to_cart($product_id);
fsgdoterr
  • 25
  • 2
1
vote
0 answers

How do I copy a specific booking resource on the WooCommerce Bookings order?

Upon completion of the WooCommerce Bookings order I'd like to CC the resource (post type bookable_resource) that was assigned/selected/associated with the order. Then repeat the CC during the booking reminder. I've tried a hand-full of ideas but the…
Don
  • 21
  • 5
1
vote
0 answers

How to calculate shipping cost based on Woocommerce booking time slots?

I have a woocommerce shop with the woocommerce booking system. At my website, you can book meal deliveries based on time slots. I used the booking system because some meals are available some days. And, you can book meals on multiple days in one…
Miguou
  • 11
  • 1
1
vote
1 answer

WooCommerce: Bookings : Trying to update dB for pricing tab in products

When I use the backend interface to add an array to the _wc_bookings_pricing meta_key I can see it gets saved like…
Eric Brockman
  • 824
  • 2
  • 10
  • 37
1
vote
0 answers

Display next available date on shop page for woocommerce bookable products

I use the Woocommerce bookable products plugin. I want to display the next available date (earliest available date) for each bookable product right on the shop page - which has the image, title and the price. This would allow customers to choose the…
justme24x7
  • 51
  • 2
  • 6
1
vote
1 answer

Disable Booking status update option in WCFM if booking is pending, Cancelled & unpaid

I'm using Hook from wcfm to disable the status update option but it's not working. I want to restrict the vendors from updating status. add_action( 'wcfm_booking_overview_block', 'disable_cancelled_booking', 20, 2 ); function…
1
vote
1 answer

Display bookings date time in Woocommerce admin order list

In Woocommerce with Woocommerce Bookings, I have the following to add the booking details in WooCommerce order preview, below each order item: function get_booking_id_from_order_item( $item_id ) { global $wpdb; return (int) $wpdb->get_var(…
Melooo7
  • 205
  • 1
  • 7
1
vote
1 answer

Exclude a product from WooCommerce Booking Google calendar sync in unpaid status

I have an issue with excluding 1 product from woocommerce bookings Google calendar sync in unpaid status. I have a clients which are booking individual classes where they pay at. These classes I need to sync with my google calendar in unpaid status.…
1
vote
0 answers

WooCommerce Bookings Accommodation, check_availability_rules_against_time not working with slot_end_time

I'm trying to use the function check_availability_rules_against_time on WooCommerce Bookings to determine if a range of time is available for accomodation. As I understand, it should return true if the time slot checked against the rules is…
oldslow
  • 11
  • 3
1
vote
0 answers

Export WooCommerce Booking Orders using Woocommerce Advanced Export plugin

Having some really issue with a bit of custom code, I'm using the Woocommerce Booking plugin along with the Woocommerce Advanced Export plugin. My aim is to only export reservations for (today), Ive got the export table and everything setup but…
1 2
3
11 12