• Resolved capucinewordpress

    (@capucinewordpress)


    Hello Yoan!

    I am planning to sell 2 products relating to 1 activity. One would be a simple 1 ticket reservation, and the other one would allow to book all tickets (6 in that case) and make the event private. The idea is that the activity would not be available for private booking if someone already has purchased 1(or 2 or 3) tickets individually, and that it wouldn’t be available for individual booking if someone has booked the entire event as a private booking.
    At the moment I am not able to do this using your plugin and I would love it if you could help me out on how to proceed.
    Here is what I have tried so far :
    – Creating 2 separate activities, but then I would need a way to make it so there is only one resource available that is needed for both activities (ie : the teacher) so as soon as one activity gets booked for a specific date, the other one becomes unavailable.
    – Creating 2 separate products, with one where I try to fix the quantity (ie, you can only add exactly 6 of that product to the cart), but it seems your plugin doesn’t play well with the fixed quantity plugins I have tried, probably because there is no change in the quantity, and only one booking gets added to the cart.
    – Using your “private activity” settings but it doesn’t fit my requirement as it is possible for different people to book the activity individually if noone has booked it as a private event.
    Any idea on how I could make this work ?
    Thanks a lot !
    Capucine

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello Capucine,

    Why do you want to make two distinct products?

    Because if you have only one single product, and one single activity, it meets your needs by default:
    – if someone book 6/6 places, the event will be private because a single person has booked every available places
    – if someone book 1/6 place (or 2/6, or so), the event won’t be private and others will be able to join up

    If you want to set a different price when someone books 6 places at once, you can set a volume discount with the Prices and Credits add-on. Or you may find a WooCommerce plugin to set a different price according to the quantity.

    Else, regarding your previous tries:
    1.
    You can do that with a piece of code I’ve made. Here is the code and the instructions (see 3.):
    https://github.com/bookingactivities/booking-activities/issues/29#issuecomment-508474476

    2.
    Booking Activities simply adds to cart the quantity set in the “quantity” field.
    You can make it fixed with few javascript code in both the product page and the cart item.

    3.
    If I understand correctly, you don’t need this option as explained in the beginning.

    You can also hook to ‘bookacti_validate_booking_form’ (wp-content/plugins/booking-activities/functions/functions-booking-system.php line 1032) to make your own custom checks in PHP.

    Regards,
    Yoan Cutillas

    Thread Starter capucinewordpress

    (@capucinewordpress)

    Hello Yoan,

    You are totally right, the functionality can be achieved with only one activity and a discount price for booking the 6 tickets in one go. However, the customer wants to be able to advertise the private activity and wanted 2 separate products to do so. Basically, the 2 products are targeting 2 separate audiences. Also, the private bookings will be booked as a single entity, but might be used by less than 6 people so it looks a bit confusing to select 6 tickets and apply a discount.
    Anyways, your code snippet was perfect and totally solved my issue, thanks a lot !
    This is some amazing support you are providing here !

    Best,
    Capucine

    Plugin Author yoancutillas

    (@yoancutillas)

    Thank you very much !
    Glad you could use one of the solutions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Booking multiple tickets with one product’ is closed to new replies.