{"id":812,"date":"2024-05-17T13:25:37","date_gmt":"2024-05-17T11:25:37","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=812"},"modified":"2024-05-17T13:29:10","modified_gmt":"2024-05-17T11:29:10","slug":"fixed-rate-for-a-specific-distance-range","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/fixed-rate-for-a-specific-distance-range\/","title":{"rendered":"Fixed Rate for a Specific Distance Range"},"content":{"rendered":"<p>Let&#8217;s assume you want to set specific fixed (or flat) prices for specific distance ranges, for example:<\/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; $29<br \/>\n10-30 km &#8211; $39<br \/>\n30-50 km &#8211; $49<br \/>\n50-100 km &#8211; $79<\/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>You need to create as many rules as you have distance ranges. In this case there will be 4 rules.<\/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_05_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_05_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;Set directly in the &#8220;Prices&#8221; tab&#8217;<\/mark>, set <mark>&#8216;Booking Sum Type&#8217;<\/mark> option to <mark>&#8216;Fixed&#8217;<\/mark>, and in the <mark>&#8216;Prices&#8217;<\/mark> table below, set the <mark>&#8216;Fixed&#8217;<\/mark> price that corresponds to this distance range, 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_05_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_05_04.png\">See screenshot<\/a><\/p>\n<p>You have now configured your first distance range. Regardless of whether the distance is 1 km or 10 km, the price for the ride is fixed and amounts to $29.<\/p>\n<h2>Adding &#8216;Rule #2&#8217;, &#8216;#3&#8217;, and &#8216;#4&#8217;<\/h2>\n<p>Now add the next rules, &#8216;Rule #2&#8242; for the distance range from &#8217;10&#8217; to &#8217;30&#8217; km, &#8216;Rule #3&#8242; for the distance range from &#8217;30&#8217; to &#8217;50&#8217; km, and &#8216;Rule #4&#8242; for the distance range from &#8217;50&#8217; to &#8216;100&#8217; km in the same way as shown above by performing steps 1 to 5.<\/p>\n<p>Pay attention to step 3, where you define the distance range, and step 4, where you define the price for the given distance range.<\/p>\n<p>After creating all 4 rules, the 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_05_05.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_05_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_05_07.png\">See screenshot<\/a><\/p>\n<p><a href=\"https:\/\/quanticalabs.com\/Envato\/Items\/Chauffeur_Booking_System_WordPress\/pricing_rules_faq\/chauffeur_pricing_rule_05_08.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.0<br \/>\nLast updated: May 17, 2024<br \/>\nPlugin version: 6.8+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s assume you want to set specific fixed (or flat) prices for specific distance ranges, for example: Example Distance in Km \u2013 Total Order Price 0-10 km &#8211; $29 10-30 km &#8211; $39 30-50 km &#8211; $49 50-100 km &#8211; $79 Important! If you have already created any price rules, deactivate them (move to the [&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\/812"}],"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=812"}],"version-history":[{"count":2,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/812\/revisions"}],"predecessor-version":[{"id":814,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/812\/revisions\/814"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=812"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}