{"id":547,"date":"2023-10-05T14:35:02","date_gmt":"2023-10-05T12:35:02","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=547"},"modified":"2024-05-16T12:56:29","modified_gmt":"2024-05-16T10:56:29","slug":"fixed-base-rate-for-the-first-10-km-incremental-rate-beyond","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/fixed-base-rate-for-the-first-10-km-incremental-rate-beyond\/","title":{"rendered":"Fixed Base Rate for the First 10 km, Incremental Rate Beyond"},"content":{"rendered":"<p>Imagine having the flexibility to maintain a constant price for a specified initial distance while seamlessly transitioning to an incremental rate per kilometer (or mile) for longer rides.<\/p>\n<div class=\"example\">\n<p><strong>Example<\/strong><\/p>\n<p>Distance in Km \u2013 Total Order Price<br \/>\n0-10 km &#8211; $100<br \/>\n11 km &#8211; $105<br \/>\n12 km &#8211; $110<br \/>\n13 km &#8211; $115<br \/>\nand so on\u2026<\/p>\n<\/div>\n<div class=\"important\">\n<p><strong>Important!<\/strong><\/p>\n<p>If you have already created any price rules, deactivate them (move to the trash) because they may overwrite the final effect.<\/p>\n<\/div>\n<p>We need 2 rules to achieve the intended result.<\/p>\n<p>I will apply the rules to the <strong>BMW<\/strong> vehicle, as shown in the screenshots below.<\/p>\n<h2>Adding &#8216;Rule #1&#8217;<\/h2>\n<p><strong>Step 1.<\/strong> Go to the <mark>&#8216;Pricing Rules&#8217;<\/mark> menu and add a new pricing rule (Add New), I call it &#8216;Rule #1&#8217;.<\/p>\n<p><strong>Step 2.<\/strong> Go to the <mark>&#8216;Conditions&#8217;<\/mark> -&gt; <mark>&#8216;Vehicles&#8217;<\/mark> tab and select the vehicle from the list (in my case &#8220;BMW 5 Series Long&#8221;).<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_01.png\">See screenshot<\/a><\/p>\n<p><strong>Step 3.<\/strong> Go to the <mark>&#8216;Conditions&#8217;<\/mark> -&gt; <mark>&#8216;Distance&#8217;<\/mark> tab and set the parameters as shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_02.png\">See screenshot<\/a><\/p>\n<p><strong>Step 4.<\/strong> Go to the <mark>&#8216;Prices&#8217;<\/mark> tab and set the <mark>&#8216;Price Source Type&#8217;<\/mark> option to <mark>&#8216;Calculation based on distance (all ranges)&#8217;<\/mark> as shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_03.png\">See screenshot<\/a><\/p>\n<p><strong>Step 5.<\/strong> Go to the <mark>&#8216;Options&#8217;<\/mark> tab and set the <mark>&#8216;Next Rule Processing&#8217;<\/mark> option to <mark>&#8216;Enable&#8217;<\/mark>. In addition set <mark>&#8216;Post order&#8217;<\/mark> to for example &#8217;99&#8217; (it can be any value, it&#8217;s important that this rule has a higher priority than the next one we will create) as shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_04.png\">See screenshot<\/a><\/p>\n<p><strong>Step 6.<\/strong> Save the rule by clicking <mark>&#8216;Publish&#8217;<\/mark>. The rule should look like this:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_05.png\">See screenshot<\/a><\/p>\n<h2>Adding &#8216;Rule #2&#8217;<\/h2>\n<p><strong>Step 1.<\/strong> Go to the <mark>&#8216;Pricing Rules&#8217;<\/mark> menu and add a second pricing rule (Add New), I call it &#8216;Rule #2&#8217;.<\/p>\n<p><strong>Step 2.<\/strong> Go to the <mark>&#8216;Conditions&#8217;<\/mark> -&gt; <mark>&#8216;Vehicles&#8217;<\/mark> tab and select the same vehicle from the list (in my case &#8220;BMW 5 Series Long&#8221;).<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_06.png\">See screenshot<\/a><\/p>\n<p><strong>Step 3.<\/strong> Go to the <mark>&#8216;Prices&#8217;<\/mark> tab and set the <mark>&#8216;Price Source Type&#8217;<\/mark> option to <mark>&#8216;Set directly in the &#8220;Prices&#8221; tab&#8217;<\/mark>. Scroll down to <mark>&#8216;Prices&#8217;<\/mark> table. Find <mark>&#8216;Initial&#8217;<\/mark> row and set value &#8216;100&#8217;. In addition set all prices related to the distance as <mark>&#8216;- Inherited -&#8216;<\/mark> as shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_07.png\">See screenshot<\/a><\/p>\n<p><strong>Step 4.<\/strong> Go to the <mark>&#8216;Options&#8217;<\/mark> tab and set the <mark>&#8216;Next Rule Processing&#8217;<\/mark> option to <mark>&#8216;Disable&#8217;<\/mark>. In addition set post order to &#8217;98&#8217; (this value should be lower than when creating the first rule. It is important that this rule executes second) as shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_08.png\">See screenshot<\/a><\/p>\n<p><strong>Step 5.<\/strong> Save the rule by clicking <mark>&#8216;Publish&#8217;<\/mark>. Both rules should look like this:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_09.png\">See screenshot<\/a><\/p>\n<h2>Consider Two Additional Settings<\/h2>\n<h3>Hide Fees<\/h3>\n<p>By default, the rate for the first 10 km (our rule 0-10 km &#8211; $100) is treated as an initial fee. So this amount is visible only after selecting the vehicle as one of the price components in the left sidebar. However, you can include it in the price of the vehicle and display it directly next to the vehicle in the vehicle list. To do this, go to the booking form settings by going to the <mark>&#8216;Booking Forms&#8217;<\/mark> menu, on the <mark>&#8216;General&#8217;<\/mark> -&gt; <mark>&#8216;Prices&#8217;<\/mark> tab, find the <mark>&#8216;Hide Fees&#8217;<\/mark> option and set it to <mark>&#8216;Hide in booking summary and include in vehicle price&#8217;<\/mark>.<\/p>\n<h3>Rounding<\/h3>\n<p>It is worth using the price rounding option. Google takes distances between locations seriously, hence the discrepancies due to decimals. In additions when using the <mark>&#8216;Calculation based on distance (all ranges)&#8217;<\/mark> function, due to the way it works (calculating the average price over many distance ranges), you can obtain prices that will include decimal parts resulting from the calculations. Go to the booking form settings by going to the <mark>&#8216;Booking Forms&#8217;<\/mark> menu, on the <mark>&#8216;General&#8217;<\/mark> -&gt; <mark>&#8216;Prices&#8217;<\/mark> tab, find the option <mark>&#8216;Vehicle Price Rounding&#8217;<\/mark> and set &#8216;0.5&#8217; to round prices to 50 cents.<\/p>\n<p>Both settings shown in the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_10.png\">See screenshot<\/a><\/p>\n<h2>Final Result<\/h2>\n<p>Here&#8217;s the pricing effect for renting BMW 5 Series Long vehicle for different distances:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_11.png\">See screenshot<\/a><\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_01_12.png\">See screenshot<\/a><\/p>\n<p>We hope you found this tutorial helpful. Thank you for reading, and happy pricing!<\/p>\n<div class=\"doc-version\">\n<p><strong>Summary<\/strong><\/p>\n<p>Document version: 1.2<br \/>\nLast updated: May 16, 2024<br \/>\nPlugin version: 7.3+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Imagine having the flexibility to maintain a constant price for a specified initial distance while seamlessly transitioning to an incremental rate per kilometer (or mile) for longer rides. Example Distance in Km \u2013 Total Order Price 0-10 km &#8211; $100 11 km &#8211; $105 12 km &#8211; $110 13 km &#8211; $115 and so on\u2026 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"lsvr_kba_cat":[7],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/547"}],"collection":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":18,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/547\/revisions"}],"predecessor-version":[{"id":792,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/547\/revisions\/792"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=547"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}