BEING CREATIVE SINCE 2003

Online Hotel Booking System Adding Discounts

Online Hotel Booking System – WordPress Plugin by BSI

This great plugin does have some limitations such as the ability to add discounts should the customer want more than X no. of nights. If you’re happy to make a slight modification to the code it’s very simple.

Here’s a small tweak to help you resolve the issue:

1. Open bsihostbooking –> front –> includes –> search.class.php

2. Around line 256 you’ll see $total_price_amount=$totalamt3;

3. Create a new line underneath and add something like if ($totalDays > 3) {$total_price_amount=$total_price_amount - ($total_price_amount *.5);} – this example would give you a 50% discount for more than 3 nights.