Not all rental businesses use a fixed rate year-round. In some cases, you may need to set a different price for the weekend, create a special rate for a holiday, or run a promotion only on certain days.
With Simple Bike Rental PRO 2.0.2, you can now create custom pricing rules without modifying the plugin files.
A new filter to customize the final price
Version 2.0.2 introduces the new filter simpbire_calculated_booking_price. The filter is applied after Simple Bike Rental PRO completes the standard booking price calculation. At this point, the plugin has already taken into account the configured rates for the bike, the rental type, the quantity, the accessories, and any multi-day discounts.
Developers can use this information to apply a custom rule to the final price. For example, you can:
- apply a surcharge on weekends;
- use different prices on weekdays and holidays;
- set a special price for a specific date;
- create promotions valid only on specific days;
- apply a discount only to the cost of the bicycles, excluding accessories;
- recalculate the price of a multi-day booking by applying a different rate for each day.
Different rates for each day of a multi-day booking
One of the most interesting cases involves multi-day bookings. Let’s consider a bicycle with a daily rate of 50 euros and a 10% surcharge on Saturdays and Sundays. For a rental from Friday to Sunday, the price can be calculated as follows:
- Friday: 50 euros
- Saturday: 55 euros
- Sunday: 55 euros
- Total: 160 euros
The new price customization API provides the daily rate configured for each individual bike, along with the actual rental dates. A custom rule can then analyze each day in the booking and calculate the correct price.
Customized messages in the price summary
A custom rule can result in a total that differs from the price normally displayed for the bike. To avoid confusion, Simple Bike Rental PRO 2.0.2 also introduces the simpbire_calculated_booking_price_notice filter.
This allows you to display a short message in the price summary, for example: “10% weekend surcharge applied.” The message is purely informative and appears in the price preview on the frontend.
The custom price is also used for payment
The modified price isn’t just a value displayed in the booking form. Simple Bike Rental PRO uses the same calculation when the booking is saved and to determine the Stripe payment amount. This ensures that the price displayed to the customer, the total recorded in the booking, and the amount requested for payment all remain consistent.
A more flexible foundation for custom pricing rules
The new filter doesn’t add a configuration screen for creating pricing rules. This feature is primarily designed for developers and custom integrations. The goal is to provide a stable extension point that allows the pricing system to be tailored to the specific needs of each business without modifying Simple Bike Rental PRO’s internal code.
The developer documentation includes practical examples for fixed prices, percentage discounts, promotional dates, weekend rates, and advanced calculations for multi-day bookings.

