{"id":71561,"date":"2017-01-13T18:17:41","date_gmt":"2017-01-13T18:17:41","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=71561"},"modified":"2023-08-02T05:57:15","modified_gmt":"2023-08-02T05:57:15","slug":"order-totals-opencart","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/order-totals-opencart\/","title":{"rendered":"Order Totals In Opencart"},"content":{"rendered":"<p>In Opencart Order\u00a0<b>total modules are those which decrease or increase the total price of the total order<\/b>. Some of the order totals which decrease the total price are coupons, store credits, reward points, etc.<\/p>\n<p>Some of the order totals which increase the total price are Handling fees, low order fees, taxes, etc. When we add a product to the cart then it adds that product to the cart first and then updates the cart pop-up at the front end.<\/p>\n<p>So today we will learn about how Opencart shows the taxes, shipping, coupon, vouchers, etc (These are called order totals) in the cart popup and updates these totals in each product add through AJAX.<\/p>\n<p>When we click on the &#8220;Add To Cart&#8221; button then first Opencart makes an AJAX call to the &#8220;add&#8221; functions that are present in the &#8220;checkout\/cart&#8221; controller to add the product to the database by checking other Order totals (If present).<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-393706\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1.png\" alt=\"order_total_1\" width=\"1299\" height=\"640\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1.png 1299w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1-300x148.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1-1200x591.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1-250x123.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/order_total_1-768x378.png 768w\" sizes=\"(max-width: 1299px) 100vw, 1299px\" loading=\"lazy\" \/><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/**\u00a0\n*\u00a0@category\u00a0Webkul\u00a0\n*\u00a0@package\u00a0Order\u00a0Totals\u00a0In\u00a0Opencart\u00a0Blog\u00a0\n*\u00a0@author\u00a0[Webkul]\u00a0&lt;[&lt;http:\/\/webkul.com\/&gt;]&gt;\u00a0\n* @copyright Copyright (c) Webkul Software Private Limited (https:\/\/webkul.com) \n* @license https:\/\/store.webkul.com\/license.html \n*\/\n\nif ($this-&gt;customer-&gt;isLogged() || !$this-&gt;config-&gt;get('config_customer_price')) {\n    $sort_order = array();\n\n    $results = $this-&gt;model_setting_extension-&gt;getExtensions('total');\n\n    foreach ($results as $key =&gt; $value) {\n        $sort_order[$key] = $this-&gt;config-&gt;get('total_' . $value['code'] . '_sort_order');\n    }\n\n    array_multisort($sort_order, SORT_ASC, $results);\n\n    foreach ($results as $result) {\n\n    if ($this-&gt;config-&gt;get('total_' . $result['code'] . '_status')) {\n        $this-&gt;load-&gt;model('extension\/total\/' . $result['code']);\n\n        \/\/ We have to put the totals in an array so that they pass by reference.\n        $this-&gt;{'model_extension_total_' . $result['code']}-&gt;getTotal($total_data);\n    }\n}\n\n$sort_order = array();\n\nforeach ($totals as $key =&gt; $value) {\n    $sort_order[$key] = $value['sort_order'];\n}\n\narray_multisort($sort_order, SORT_ASC, $totals);\n}\n\n$json['total'] = sprintf($this-&gt;language-&gt;get('text_items'), $this-&gt;cart-&gt;countProducts() + (isset($this-&gt;session-&gt;data['vouchers']) ? count($this-&gt;session-&gt;data['vouchers']) : 0), $this-&gt;currency-&gt;format($total, $this-&gt;session-&gt;data['currency']));\n<\/pre>\n<p>Opencart fetches all the Order totals by call the &#8220;getExtensions(&#8216;total)&#8221;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-393717\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-24-27.png\" alt=\"Screenshot-from-2023-08-02-11-24-27\" width=\"575\" height=\"577\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-24-27.png 575w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-24-27-300x300.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-24-27-248x249.png 248w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-24-27-120x120.png 120w\" sizes=\"(max-width: 575px) 100vw, 575px\" loading=\"lazy\" \/><\/p>\n<p>Then checks each order totals status and calls &#8220;getTotal()&#8221; function of each enabled Order totals to fetch the amount.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-393713\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-10-02.png\" alt=\"Screenshot-from-2023-08-02-11-10-02\" width=\"510\" height=\"475\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-10-02.png 510w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-10-02-300x279.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot-from-2023-08-02-11-10-02-250x233.png 250w\" sizes=\"(max-width: 510px) 100vw, 510px\" loading=\"lazy\" \/><\/p>\n<p>And return the text for update the cart button text.<\/p>\n<pre><code class=\"wrappedText focusRow\">&lt;pre&gt;1 item(s) - $337.99&lt;\/pre&gt;<\/code><\/pre>\n<p>After success of First AJAX call then Opencart calls the second AJAX call to update the cart popup by making an AJAX calls to the &#8220;info&#8221; function of &#8220;common\/cart&#8221;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-393707\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2.png\" alt=\"Order_total_2\" width=\"1300\" height=\"638\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2.png 1300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2-300x147.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2-1200x589.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2-250x123.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_2-768x377.png 768w\" sizes=\"(max-width: 1300px) 100vw, 1300px\" loading=\"lazy\" \/><\/p>\n<p>Info function call the index function of &#8220;common\/cart&#8221; controller<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public function info() {\n      $this-&gt;response-&gt;setOutput($this-&gt;index());\n}<\/pre>\n<p>Then Open cart does the same things which have been done in the first AJAX call but difference is that here all the elements transfer to the cart.tpl file by data variable to show the details.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-393708\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3.png\" alt=\"Order_total_3\" width=\"1291\" height=\"637\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3.png 1291w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3-300x148.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3-1200x592.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3-250x123.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Order_total_3-768x379.png 768w\" sizes=\"(max-width: 1291px) 100vw, 1291px\" loading=\"lazy\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Opencart Order\u00a0total modules are those which decrease or increase the total price of the total order. Some of the order totals which decrease the total price are coupons, store credits, reward points, etc. Some of the order totals which increase the total price are Handling fees, low order fees, taxes, etc. When we add <a href=\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":71,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1808,79,305,13],"tags":[],"class_list":["post-71561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ajax","category-jquery","category-opencart","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Order Totals In Opencart - 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\/order-totals-opencart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Order Totals In Opencart - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In Opencart Order\u00a0total modules are those which decrease or increase the total price of the total order. Some of the order totals which decrease the total price are coupons, store credits, reward points, etc. Some of the order totals which increase the total price are Handling fees, low order fees, taxes, etc. When we add [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\" \/>\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=\"2017-01-13T18:17:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-02T05:57:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sambit Pattanayak\" \/>\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=\"Sambit Pattanayak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\"},\"author\":{\"name\":\"Sambit Pattanayak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01\"},\"headline\":\"Order Totals In Opencart\",\"datePublished\":\"2017-01-13T18:17:41+00:00\",\"dateModified\":\"2023-08-02T05:57:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\"},\"wordCount\":277,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"articleSection\":[\"Ajax\",\"jQuery\",\"opencart\",\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\",\"url\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\",\"name\":\"Order Totals In Opencart - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2017-01-13T18:17:41+00:00\",\"dateModified\":\"2023-08-02T05:57:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/order-totals-opencart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/order-totals-opencart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Order Totals In Opencart\"}]},{\"@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\/23309d7bfba5b06d58b50ea5e3191f01\",\"name\":\"Sambit Pattanayak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?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\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sambit Pattanayak\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sambit-p819\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Order Totals In Opencart - 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\/order-totals-opencart\/","og_locale":"en_US","og_type":"article","og_title":"Order Totals In Opencart - Webkul Blog","og_description":"In Opencart Order\u00a0total modules are those which decrease or increase the total price of the total order. Some of the order totals which decrease the total price are coupons, store credits, reward points, etc. Some of the order totals which increase the total price are Handling fees, low order fees, taxes, etc. When we add [...]","og_url":"https:\/\/webkul.com\/blog\/order-totals-opencart\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-01-13T18:17:41+00:00","article_modified_time":"2023-08-02T05:57:15+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Sambit Pattanayak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sambit Pattanayak","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/"},"author":{"name":"Sambit Pattanayak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01"},"headline":"Order Totals In Opencart","datePublished":"2017-01-13T18:17:41+00:00","dateModified":"2023-08-02T05:57:15+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/"},"wordCount":277,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","articleSection":["Ajax","jQuery","opencart","php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/order-totals-opencart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/","url":"https:\/\/webkul.com\/blog\/order-totals-opencart\/","name":"Order Totals In Opencart - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2017-01-13T18:17:41+00:00","dateModified":"2023-08-02T05:57:15+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/order-totals-opencart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/order-totals-opencart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Order Totals In Opencart"}]},{"@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\/23309d7bfba5b06d58b50ea5e3191f01","name":"Sambit Pattanayak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?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\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sambit Pattanayak"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/sambit-p819\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71561","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\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=71561"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71561\/revisions"}],"predecessor-version":[{"id":393718,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71561\/revisions\/393718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=71561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=71561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=71561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}