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
6
votes
1 answer

WooCommerce Bookings: Set date picker to a specific date programmatically via JQuery

I want to know if there's a way to automatically set the start date an end date of a bookable product using Woocommerce bookings. What I want to achieve is when a user goes to my product page the start date and end date (month, day and year) will be…
Charles
  • 61
  • 4
6
votes
1 answer

Wordpress WooCommerce booking different prices

I bought WooCommerce booking plugin for WordPress because my client want to rent trailers. There is a problem for the different prices. Trailer A has a price of 60 euro a day. When someone rent it for a weekend it is 100 euro for the weekend. For a…
Joris
  • 119
  • 9
5
votes
0 answers

Add Woocommerce booking product to cart programmatically

I am trying to programmatically add a booking to the shopping cart. I have been looking into the code for this and have found and tried the following: Method 1: $woocommerce->cart->add_to_cart( $product_id); Method 2: WC()->cart->add_to_cart(…
IMO
  • 307
  • 1
  • 3
  • 12
5
votes
2 answers

How to Supply Console Logs Data into the WooCommerce Cart?

I am using the third party gadget where they are providing live availability, cost and book now button. When customer click on book now button, it's using their booking gadget which I want to ignore. After doing some google research, I am able to…
4
votes
1 answer

Add person types programmatically on bookable product creation in Woocommerce 3

Basically I'm trying to add a new bookable product in Woocommerce using a custom form I've made, so I have to add the products programmatically. Creating the product is fine, the problem is that I can't figure out how to add a new person type to my…
4
votes
1 answer

Get the person type name from cart items in Woocommerce Bookings

I have enabled Woocommerce Bookings plugin and I should need to display person types on the checkout page which are added into cart. I can calculate persons count via this code: foreach(WC()->cart->get_cart() as $cart_item) { $person =…
3
votes
2 answers

Get all persons as a sum from all WooCommerce bookings

I use the official woocommerce booking plugin and I try do get the quantity of all persons that have booked a product. for a single order that's no problem with: if ( is_callable( 'WC_booking_Data_Store::get_booking_ids_from_order_id') ) { …
3
votes
2 answers

WC Bookings - filter - to few arguments passed

Using WooCoomerce along with WooCommerce Bookings plugin. In their API Reference, there's a listed filter for modifying booking cost: woocommerce_bookings_calculated_booking_cost. To cut it short, here's how it's applied in the code: return…
Milos
  • 981
  • 3
  • 16
  • 41
3
votes
1 answer

How to disable shipping checkout fields for WooCommerce booking products

I know that I can automatically disable shipping fields by checking "virtual" on the product submission form - but how could I by default disable shipping fields on the checkout for Woocommerce Booking products (for "booking" product type)?
3
votes
3 answers

Enable user local time in Woocommerce Cart and Checkout date time display

For a bookings website I have activated 'Timezones'. The visitor's local time should be displayed. In the booking form everything is working fine. The cart data ($start_time, $end_time) is not being displayed correctly when using the function…
PPP
  • 85
  • 1
  • 8
3
votes
1 answer

Conditionally alter specific product price in Woocommerce

I would like to alter a specific product in Woocommerce, adding programmatically to its original an amount of $10, EXCEPT in those cases: On specific product pages that are bookable products for hire (Woocommerce Bookings) that belongs to a certain…
Rose Thorn
  • 179
  • 3
  • 16
3
votes
1 answer

Dynamic checkout custom fields per persons and items in Woocommerce bookings

For a bookings website I'm trying to create a function which makes it possible to add an attendee list, based on the amount of persons. I've already got the code for a single booking, thanks to LoicTheAztec. That part is working fine. I also need…
3
votes
1 answer

WooCommerce Bookings: Retrieve the booking data before order is created

I am using WooCommerce Bookings plugin and I currently looking to display additional information in the booking summary (product options). To do this I use the following hook: woocommerce_admin_booking_data_after_booking_details If my reservation…
Antoine
  • 33
  • 1
  • 5
3
votes
2 answers

WooCommerce Bookings: Create a Booking Order programmatically

I have been trying this for a couple of hours now, with different code & reading every doc on booking I can find - but I seem to be unable to figure out how exactly I do this. My biggest inspiration comes from the WooCommerce Booking Doc, but this…
Mac
  • 334
  • 1
  • 3
  • 13
3
votes
2 answers

How to Send an email when user made a booking using Woocommerce Booking

I want to notify both user and admin through an email when user made a booking in WooCommerce Bookings. Now it is sending mail only to admin to confirm booking. Can anyone give me right direction, as how to achieve this. Thanks.
1
2 3
11 12