What's new
  • Our resources on Babiato Forum is CLEAN and SAFE. So you can use it for development or production. But sometime the antivirus will warn the JS code. It's no problem. So before downloading, you need to disable the antivirus tools and then enjoy your "Party"!

Woocommerce Force Sells/Bookings - Snippet to force number of person in a booking

piet

New member
Joined
Aug 27, 2019
Messages
4
Reaction score
0
Points
1
Hi !

plugins :
  • woocommerce bookings
  • woocommerce force sells
I want to use WooCommerce Force Sells to add one force-sold item per number of person in a booking.

Woocommerce guys already provided a snippet to be added in functions.php which modifies the behaviour of Force Sells. With this snippet you can set a fixed quantity (1) of side product to be added :

PHP:
You don't have permission to view the code content. Log in or register now.
What I would like to do :
Replacing the fixed quantity (1) with a function retrieving the number of people specified in the booking.


Any help would be awesome !

Pierre.
 

Similar threads


Forum statistics

Threads
12,489
Messages
74,549
Members
38,453
Latest member
freddyblack20054