Bookinng per item, not per days

Hi team,

I have a website on which we sell retreats. Visiitors are able to book retreats as a whole, not per days. The booking Extension multipliesthe the price ot the retreat per the number of days. Onmycase this does not work. the number of days are not to be taken into account as the retreats are sold a a single item, the price should remain the same set .

thanks

Hi,

Could you please clarify how the desired flow should look? Specifically, do users book the exact day they want to have the retreat, or do you use time slots to know the precise time customers will attend? For now, I recommend considering using a Marketplace setup if you are selling the retreat as a fixed product rather than a bookable experience. This would allow you to sell the retreats for a fixed price. Alternatively, if users book a specific day for the retreat, you could consider enabling daily prices, setting the price for the whole retreat, and requiring the user to select the starting day.

Hi Kseniia,

Thank you for the details.

Could you please clarify if the retreat has specific start and end dates, or if it can be booked at any time?

If it’s on fixed dates, I’d suggest turning off Bookings and just using Marketplace. You can still use extras and tiers there, and you can limit quantity (for example, the maximum number of people per retreat). That way, availability is enforced, but you don’t need to use dates.

If it does require dates and a calendar, you could turn off the multiplication by dates, but that would require some custom coding. You might try searching for a snippet or asking AI, I think there was something like this before, possibly using the hivepress/v1/models/listing/cart hook. Even if there isn’t a ready-made snippet, that hook can at least serve as a sample for influencing the pricing logic, since the total is calculated there.

Hi, thanks for the reply..

Could you please clarify if the retreat has specific start and end dates, or if it can be booked at any time?

The rertreat organiser, sets fix dates on normal scenarios. Normally 3, 5 or 7 days. But it does not matter. What I want is the retreats to be sold as a single product, despite the number of daysor fix dates. The calendar and the dates selection is for the organiser to know which dats and how many people are participating. It does not influence or is important to me at any stage.

If it’s on fixed dates, I’d suggest turning off Bookings and just using Marketplace. You can still use extras and tiers there, and you can limit quantity (for example, the maximum number of people per retreat). That way, availability is enforced, but you don’t need to use dates.

I deactivated the Bookings plugins, leaving only the Marketplace one, as you recommended. It turns that now I can not sell any items now. The Book Now disappeared (which Ii assume it’s associated to the Bookings plugin) but I need to see of have an option to sell items (retreats) and I can’t seem to find where is it right now. Not really sure what you mean by ‘Tiers and Extras’. The organiser are responsible for limiting the number of people, but would be interesting to know how to enforce that.

If it does require dates and a calendar, you could turn off the multiplication by dates, but that would require some custom coding. You might try searching for a snippet or asking AI, I think there was something like this before, possibly using the hivepress/v1/models/listing/cart hook. Even if there isn’t a ready-made snippet, that hook can at least serve as a sample for influencing the pricing logic, since the total is calculated there.

This is what AI suggested and it worked.
You may want to suggest to suggest this to other users.
I wouldn’t charge you for it…. :grinning_face:

// Prevent HivePress from multiplying the listing price by days or nights
add_filter( ‘hivepress/v1/models/booking/cost’, function( $cost, $booking ) {


// Get the listing object
$listing = $booking->get_listing();

if ( $listing ) {
    // Set cost equal to the base listing price
    $cost = (float) $listing->get_price();
}

return $cost;


}, 10, 2 );

Thanks

Thanks for sharing the snippet!

Could you please clarify, did this snippet resolve the issue for you, or do you still need further assistance and a workaround for the use case you described?

Hi there,

unfortunately, it didn’t work.
According to the AI I’m using, it says that Bookings and Marketplace from Hivepress are hard coded. It worked for few moments and after 2hrs, back to square one.

I gave up, on Bookings and Deposits & Partial Payments for WooCommerce, they get along together, so I withdrew.

I chose another path, which is telling market place to use every booking as a whole, and despite the number of days, it’ll be consider as 1 day only, which is great.

Now my main problem is collecting commissions based on the price to vendors and on the money paid to buyers.

WooCommerce Deposits and Hivepress Flat fee booking, don’t to communicate well,. so work in progress.

Glad for your inputs

it’s a plugin AI helped me create, didn’t work.

Hi,

Thanks for the detailed feedback. Just wanted to clarify that our extensions aren’t hard-coded, we try to make everything as customizable as possible, at least through hooks. For example, you can override almost everything using hooks without editing the code directly, including form fields, features, and more.

We understand that some specific use cases may require more advanced customization, but we’ll definitely work on making the pricing system more flexible in future updates.

thanks for your reply,
I in the end, decided to change the whole thing and use a different theme and plugins.

this was becoming too much work and expertise which seemed overwhelming to me. I do understand Listing hive and all extensions within are awesome, and I will continue to use it in other projects, but this one was not the case.

I, in any case, appreciate all the help, advice and support.

Thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.