If this doesn't fit your pricing model, you can specify a completely custom pricing scheme in form of an external script located on your web server that will return the price based on the input parameters passed to your script by ibookfishing, such as rental start/end time, number of persons, number of resources rented and resource ID.
If you're not a developer, we can write the script for you. In exchange we ask you to credit your own ibookfishing account with a one-time payment of EUR 50 - 100 for simple scripts (ask us if in doubt). Then, we'll need you to send us the exact specification of your pricing structure. So, this way we write this script for you free of charge if you continue using our service.
To use a custom pricing scheme, instead of specifying price in resource settings (you can also do this in the Default price rule in Pricing Manager), specify the URL of your script (e.g. http://yoursite.com/scriptname.php). Please note that further Pricing Manager rules (after Default price) will not be applied when custom script is used. The following parameters are sent (POST method):
< ?php // date/time functions will work fine with timezone set to GMT date_default_timezone_set (GMT); // sample seasons and pricing here define ('HIGH_SEASON_MONTH_START', 7); // first month of high season (without discount) define ('HIGH_SEASON_MONTH_END', 9); // last month of high season (without discount) define ('LOW_SEASON_DISCOUNT', 20); // discount in % define ('WEEKLY_PRICE', 100); // price for a week in EUR define ('DAILY_PRICE', 20); // price per day in EUR function get_param ($name) { global $_GET; // let's check GET parameters as well for testing purposes global $_POST; // parameters are sent by ibookfishing using POST if (isset ($_GET [$name])) return $_GET [$name]; return $_POST [$name]; } // parameters passed by ibookfishing $units = get_param ('units'); // number of time units $count = get_param ('count'); // number of resources $start_date_stamp = get_param ('start'); // start date $end_date_stamp = get_param ('end'); // end date $persons = get_param ('persons'); // number of persons $resource = get_param ('resource'); // resource id // start date $start_date = getdate ($start_date_stamp); $month = $start_date ['mon']; // season-based discount if ($month < HIGH_SEASON_MONTH_START || $month > HIGH_SEASON_MONTH_END) $discount_factor = 100 - LOW_SEASON_DISCOUNT; else $discount_factor = 100; // use weekly or daily price if ($units >= 7) { $weeks = ceil ($units / 7); $price = $weeks * WEEKLY_PRICE * $discount_factor / 100; } else { $price = $units * DAILY_PRICE * $discount_factor / 100; } echo $price; ? >