{"id":73640,"date":"2017-02-03T16:13:25","date_gmt":"2017-02-03T16:13:25","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=73640"},"modified":"2017-02-03T16:13:25","modified_gmt":"2017-02-03T16:13:25","slug":"opencart-compare-products","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/opencart-compare-products\/","title":{"rendered":"Opencart Compare Products"},"content":{"rendered":"<p>Today we will learn about working of Opencart compare products\u00a0 . In the Opencart customer can add maximum 4 Products for compare at a time. If customer added more products then it shift them from the beginning and kept just last 4 products for compare.<\/p>\n<p>When customer press the product compare button for any particular product it sends an ajax request to the controller product\/compare and process it and added the product id to the session in compare index. Lets take a deep look in all these process.<\/p>\n<p>In Opencart at the button of the compare it fired the event onclick which call the add method of common.js file which is already loaded in the document during the header load.<\/p>\n<pre class=\"brush:php\">\/\/Calls the add method of the compare object by passing the product id of common.js file whcih is already loaded with the header\r\n\u00a0&lt;button type=\"button\" data-toggle=\"tooltip\" class=\"btn btn-default\" title=\"&lt;?php echo $button_compare; ?&gt;\" onclick=\"compare.add('&lt;?php echo $product_id; ?&gt;');\"&gt;&lt;i class=\"fa fa-exchange\"&gt;&lt;\/i&gt;&lt;\/button&gt;<\/pre>\n<p>In the add method of the common.js file it sends an ajax request to the controller product\/compare with the product id \u00a0 and calls the add method of the controller.<\/p>\n<pre class=\"brush:js\">var compare = {\r\n\u00a0\u00a0 \u00a0'add': function(product_id) {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$.ajax({\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0url: 'index.php?route=product\/compare\/add',\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0type: 'post',\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0data: 'product_id=' + product_id,\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0dataType: 'json',\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0success: function(json) {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$('.alert').remove();\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0if (json['success']) {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$('#content').parent().before('&lt;div class=\"alert alert-success\"&gt;&lt;i class=\"fa fa-check-circle\"&gt;&lt;\/i&gt; ' + json['success'] + ' &lt;button type=\"button\" class=\"close\" data-dismiss=\"alert\"&gt;&amp;times;&lt;\/button&gt;&lt;\/div&gt;');\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$('#compare-total').html(json['total']);\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$('html, body').animate({ scrollTop: 0 }, 'slow');\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0}\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0},<\/pre>\n<p>In the controller it first check for the compare index in the sesson array exist or not. If not then it create an index of compare in session of array type. After that get the product inforamtion and check for product id valid.<\/p>\n<pre class=\"brush:php\">if (!isset($this-&gt;session-&gt;data['compare'])) {\r\n    $this-&gt;session-&gt;data['compare'] = array();\r\n}\r\n<\/pre>\n<p>After that it get the product information and and if the product find then it check that it is already added for compare or not and if it is not already in compare list then it checks already 4 products are added for compare then it remove the first product and kept only last 4 product for compare in that array.<\/p>\n<pre class=\"brush:php\">$product_info = $this-&gt;model_catalog_product-&gt;getProduct($product_id);\r\n\r\n\/\/Check If product exist \r\nif ($product_info) {\r\n     \/\/Check that product is not already added for compare\r\n\tif (!in_array($this-&gt;request-&gt;post['product_id'], $this-&gt;session-&gt;data['compare'])) {\r\n           \r\n        \/\/If already 4 product in compare then it shift first product and kept only last 4 prodcut for compare\r\n\t    if (count($this-&gt;session-&gt;data['compare']) &gt;= 4) {\r\n\t\t   array_shift($this-&gt;session-&gt;data['compare']);\r\n\t    }\r\n\t    $this-&gt;session-&gt;data['compare'][] = $this-&gt;request-&gt;post['product_id'];\r\n\t}\r\n\t$json['success'] = sprintf($this-&gt;language-&gt;get('text_success'), $this-&gt;url-&gt;link('product\/product', 'product_id=' . $this-&gt;request-&gt;post['product_id']), $product_info['name'], $this-&gt;url-&gt;link('product\/compare'));\r\n\t$json['total'] = sprintf($this-&gt;language-&gt;get('text_compare'), (isset($this-&gt;session-&gt;data['compare']) ? count($this-&gt;session-&gt;data['compare']) : 0));\r\n}\r\n<\/pre>\n<p>When click on the comapre list after adding the products it iterate the compare index of the session and fetch the product inforamtion from their product id. It shows the name,image,price,special offer on product,description,model,manufacturer,availability,minimum (how many minimum product can buy),rating,reviews,weight,length,width,height and product attribute of the product during compare the product.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-73672\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1.png\" alt=\"\" width=\"1239\" height=\"644\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1.png 1239w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1-250x130.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1-300x156.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1-768x399.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/02\/image1-1-1200x624.png 1200w\" sizes=\"(max-width: 1239px) 100vw, 1239px\" loading=\"lazy\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will learn about working of Opencart compare products\u00a0 . In the Opencart customer can add maximum 4 Products for compare at a time. If customer added more products then it shift them from the beginning and kept just last 4 products for compare. When customer press the product compare button for any particular <a href=\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":125,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[],"class_list":["post-73640","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Opencart Compare Products - 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\/opencart-compare-products\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Opencart Compare Products - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Today we will learn about working of Opencart compare products\u00a0 . In the Opencart customer can add maximum 4 Products for compare at a time. If customer added more products then it shift them from the beginning and kept just last 4 products for compare. When customer press the product compare button for any particular [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\" \/>\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-02-03T16:13:25+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=\"Saurabh Singh\" \/>\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=\"Saurabh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\"},\"author\":{\"name\":\"Saurabh Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f599495ef5c4b4084ae49efd9878ad94\"},\"headline\":\"Opencart Compare Products\",\"datePublished\":\"2017-02-03T16:13:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\"},\"wordCount\":319,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\",\"url\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\",\"name\":\"Opencart Compare Products - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2017-02-03T16:13:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/opencart-compare-products\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-compare-products\/#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\/opencart-compare-products\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Opencart Compare Products\"}]},{\"@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\/f599495ef5c4b4084ae49efd9878ad94\",\"name\":\"Saurabh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/43a07724ddc53f3f8f0d55ba2674542b3c61d51880ca31332d27cdebb18e3ea0?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\/43a07724ddc53f3f8f0d55ba2674542b3c61d51880ca31332d27cdebb18e3ea0?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Saurabh Singh\"},\"sameAs\":[\"http:\/\/webkul.com\/blog\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/saurabh-singh631\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Opencart Compare Products - 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\/opencart-compare-products\/","og_locale":"en_US","og_type":"article","og_title":"Opencart Compare Products - Webkul Blog","og_description":"Today we will learn about working of Opencart compare products\u00a0 . In the Opencart customer can add maximum 4 Products for compare at a time. If customer added more products then it shift them from the beginning and kept just last 4 products for compare. When customer press the product compare button for any particular [...]","og_url":"https:\/\/webkul.com\/blog\/opencart-compare-products\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-02-03T16:13:25+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":"Saurabh Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Saurabh Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/"},"author":{"name":"Saurabh Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f599495ef5c4b4084ae49efd9878ad94"},"headline":"Opencart Compare Products","datePublished":"2017-02-03T16:13:25+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/"},"wordCount":319,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/opencart-compare-products\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/","url":"https:\/\/webkul.com\/blog\/opencart-compare-products\/","name":"Opencart Compare Products - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2017-02-03T16:13:25+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/opencart-compare-products\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/opencart-compare-products\/#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\/opencart-compare-products\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Opencart Compare Products"}]},{"@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\/f599495ef5c4b4084ae49efd9878ad94","name":"Saurabh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/43a07724ddc53f3f8f0d55ba2674542b3c61d51880ca31332d27cdebb18e3ea0?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\/43a07724ddc53f3f8f0d55ba2674542b3c61d51880ca31332d27cdebb18e3ea0?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Saurabh Singh"},"sameAs":["http:\/\/webkul.com\/blog"],"url":"https:\/\/webkul.com\/blog\/author\/saurabh-singh631\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/73640","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\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=73640"}],"version-history":[{"count":10,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/73640\/revisions"}],"predecessor-version":[{"id":73673,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/73640\/revisions\/73673"}],"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=73640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=73640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=73640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}