{"id":65220,"date":"2016-11-21T16:11:11","date_gmt":"2016-11-21T16:11:11","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=65220"},"modified":"2016-11-21T16:11:11","modified_gmt":"2016-11-21T16:11:11","slug":"hyperlocal-shipping","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/","title":{"rendered":"Hyperlocal Shipping Calculation"},"content":{"rendered":"<p>Today , we will learn about , how the shipping calculated\u00a0in the opencart hyperlocal module . The hyperlocal shipping calculation is based on the distance between the seller and buyer . \u00a0The shipping calculation is \u00a0divided into two phases\u00a0:<\/p>\n<p>1 . In the first phase we calculate the distance between the seller and buyer by using the distance method . We pass the latitude and\u00a0longitude of the seller and buyer with the unit (either &#8216;K&#8217; for kilometers or &#8216;M&#8217; for miles) and method returns the distance in specified unit .<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-65229\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\" alt=\"distance\" width=\"1052\" height=\"204\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png 1052w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance-250x48.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance-300x58.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance-768x149.png 768w\" sizes=\"(max-width: 1052px) 100vw, 1052px\" loading=\"lazy\" \/><\/p>\n<p>2. In the second phase , we calculate the cost of shipping . It is divided into the three steps:<\/p>\n<p>I. First module\u00a0checks that seller have entered the price according to the weight and range of the product . If yes then it will be applied\u00a0otherwise it goes to the second step .<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-65242\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shp1.png\" alt=\"shp1\" width=\"867\" height=\"659\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shp1.png 867w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shp1-250x190.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shp1-300x228.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shp1-768x584.png 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" loading=\"lazy\" \/><\/p>\n<p>II. In this step , module\u00a0checks that whether the seller have entered the default price \/ flat rate or not . If yes then the shipping will be applied otherwise it moves to the last step .<\/p>\n<p>III. In the last step , module applies the flat rate entered by the admin at the shipping module setting . The default flat rate in the admin setting is mandatory , so finally it will be applied .<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-65241\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shipping1-1.png\" alt=\"shipping1\" width=\"939\" height=\"482\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shipping1-1.png 939w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shipping1-1-250x128.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shipping1-1-300x154.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/11\/shipping1-1-768x394.png 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" loading=\"lazy\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today , we will learn about , how the shipping calculated\u00a0in the opencart hyperlocal module . The hyperlocal shipping calculation is based on the distance between the seller and buyer . \u00a0The shipping calculation is \u00a0divided into two phases\u00a0: 1 . In the first phase we calculate the distance between the seller and buyer by <a href=\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":124,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[],"class_list":["post-65220","post","type-post","status-publish","format-standard","hentry","category-opencart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hyperlocal Shipping Calculation - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hyperlocal Shipping Calculation - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Today , we will learn about , how the shipping calculated\u00a0in the opencart hyperlocal module . The hyperlocal shipping calculation is based on the distance between the seller and buyer . \u00a0The shipping calculation is \u00a0divided into two phases\u00a0: 1 . In the first phase we calculate the distance between the seller and buyer by [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-21T16:11:11+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\" \/>\n<meta name=\"author\" content=\"Sarang Agrawal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sarang Agrawal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\"},\"author\":{\"name\":\"Sarang Agrawal\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3fe787f5e9200d06d3ebf9aa86af1558\"},\"headline\":\"Hyperlocal Shipping Calculation\",\"datePublished\":\"2016-11-21T16:11:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\"},\"wordCount\":206,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\",\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\",\"url\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\",\"name\":\"Hyperlocal Shipping Calculation - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\",\"datePublished\":\"2016-11-21T16:11:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage\",\"url\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\",\"contentUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hyperlocal Shipping Calculation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3fe787f5e9200d06d3ebf9aa86af1558\",\"name\":\"Sarang Agrawal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/463bd0dd4a24de98604547719c1903e8af6b4133153ba8cc08799c7b2e3a5ce6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/463bd0dd4a24de98604547719c1903e8af6b4133153ba8cc08799c7b2e3a5ce6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sarang Agrawal\"},\"sameAs\":[\"http:\/\/webkul.com\/blog\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sarang-agrawal032\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hyperlocal Shipping Calculation - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/","og_locale":"en_US","og_type":"article","og_title":"Hyperlocal Shipping Calculation - Webkul Blog","og_description":"Today , we will learn about , how the shipping calculated\u00a0in the opencart hyperlocal module . The hyperlocal shipping calculation is based on the distance between the seller and buyer . \u00a0The shipping calculation is \u00a0divided into two phases\u00a0: 1 . In the first phase we calculate the distance between the seller and buyer by [...]","og_url":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-11-21T16:11:11+00:00","og_image":[{"url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png","type":"","width":"","height":""}],"author":"Sarang Agrawal","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sarang Agrawal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/"},"author":{"name":"Sarang Agrawal","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3fe787f5e9200d06d3ebf9aa86af1558"},"headline":"Hyperlocal Shipping Calculation","datePublished":"2016-11-21T16:11:11+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/"},"wordCount":206,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png","articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/","url":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/","name":"Hyperlocal Shipping Calculation - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png","datePublished":"2016-11-21T16:11:11+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/hyperlocal-shipping\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#primaryimage","url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png","contentUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/11\/distance.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/hyperlocal-shipping\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Hyperlocal Shipping Calculation"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3fe787f5e9200d06d3ebf9aa86af1558","name":"Sarang Agrawal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/463bd0dd4a24de98604547719c1903e8af6b4133153ba8cc08799c7b2e3a5ce6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/463bd0dd4a24de98604547719c1903e8af6b4133153ba8cc08799c7b2e3a5ce6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sarang Agrawal"},"sameAs":["http:\/\/webkul.com\/blog"],"url":"https:\/\/webkul.com\/blog\/author\/sarang-agrawal032\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/65220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/124"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=65220"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/65220\/revisions"}],"predecessor-version":[{"id":65246,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/65220\/revisions\/65246"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=65220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=65220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=65220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}