{"id":568,"date":"2023-10-05T13:05:06","date_gmt":"2023-10-05T11:05:06","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=568"},"modified":"2024-03-01T11:37:15","modified_gmt":"2024-03-01T10:37:15","slug":"variable-rate-per-distance-for-different-distance-intervals","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/variable-rate-per-distance-for-different-distance-intervals\/","title":{"rendered":"Variable Rate per Distance for Different Distance Intervals"},"content":{"rendered":"<p>In this guide, we will present a pricing rule that varies the rate per kilometer depending on the distance. Whether it&#8217;s 10 km or 100 km, the price adapts to the journey&#8217;s length.<\/p>\n<div class=\"example\">\n<p><strong>Example<\/strong><\/p>\n<p>Distance in Km \u2013 Price Per Km<br \/>\n\t0-10 km &#8211; $3.50<br \/>\n\t10-20 km &#8211; $3.20<br \/>\n\t20-30 km &#8211; $3.00<br \/>\n\t30-50 km &#8211; $2.80<br \/>\n\t> 50 km &#8211; $2.50<br \/>\n\tand 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><strong>Case:<\/strong> A customer requests a ride that covers a distance of 17 kilometers. With the variable rate per distance rule, you apply the rate of $3.20 per kilometer. So, the calculation is $3.20 x 17 = $54.40.<\/p>\n<p>We need only 1 rule to achieve the intended result.<\/p>\n<p>I will apply the rule 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> -> <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_03_01.png\">See screenshot<\/a><\/p>\n<p><strong>Step 3.<\/strong> Go to the <mark>&#8216;Conditions&#8217;<\/mark> -> <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_03_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 (exact range)&#8217;<\/mark>. In addition, you should set all price types to <mark>&#8216;- Inherited -&#8216;<\/mark>, so that this rule has no impact (does not reset) the prices in your configuration. See the screenshot below:<\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_03_03.png\">See screenshot<\/a><\/p>\n<p><strong>Step 5.<\/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_03_04.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_03_05.png\">See screenshot<\/a><\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_03_06.png\">See screenshot<\/a><\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_03_07.png\">See screenshot<\/a><\/p>\n<p>We trust this guide has empowered you to implement cumulative distance pricing, providing straightforward and predictable fares in your chauffeur booking system. Thank you for reading!<\/p>\n<div class=\"doc-version\">\n<p><strong>Summary<\/strong><\/p>\n<p>Document version: 1.1<br \/>\n\tLast updated: October 5, 2023<br \/>\n\tPlugin version: 6.8+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will present a pricing rule that varies the rate per kilometer depending on the distance. Whether it&#8217;s 10 km or 100 km, the price adapts to the journey&#8217;s length. Example Distance in Km \u2013 Price Per Km 0-10 km &#8211; $3.50 10-20 km &#8211; $3.20 20-30 km &#8211; $3.00 30-50 km [&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\/568"}],"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=568"}],"version-history":[{"count":6,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/568\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/568\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=568"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}