{"id":92805,"date":"2017-08-11T17:25:27","date_gmt":"2017-08-11T17:25:27","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=92805"},"modified":"2017-08-11T17:25:27","modified_gmt":"2017-08-11T17:25:27","slug":"opencart-marketplace-version-3","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/","title":{"rendered":"Opencart Marketplace In Version 3"},"content":{"rendered":"<p>Today we will see about Opencart Marketplace at admin panel in Opencart Version 3. Opencart added the Marketplace which are useful for the store admin for searching, installing, downloading, commenting\u00a0 and filter the Opencart extensions from admin panel instead of visiting their official sites.<\/p>\n<p><span style=\"text-decoration: underline\"><strong>Work-Flow:<\/strong><\/span><\/p>\n<p>Opencart added the marketplace directory to the admin\/controller. Their are marketplace.php which gets the information about the extensions from Opencart official site through the curl in JSON Format.<\/p>\n<p>Opencart Marketplace Api, validate the store domain to access the full feature of Marketplace API. Opencart uses the <strong>HMAC signature validator <\/strong>process for validating the store. Opencart creates the query string for signature through API Name string, Opencart User Name, Host Name, Version, Current Timestamps . It generates the signature through the Opencart Secret Key.<\/p>\n<pre class=\"brush:php\">\/\/Generating Query String for signature\r\n$string  = 'marketplace\/api\/list' . \"\\n\";\r\n$string .= $this-&gt;config-&gt;get('opencart_username') . \"\\n\";\r\n$string .= $this-&gt;request-&gt;server['HTTP_HOST'] . \"\\n\";\r\n$string .= VERSION . \"\\n\";\r\n$string .= $time . \"\\n\";\r\n\r\n\/\/Generating Signature through Hmac using Opencart Secret Key\r\n$signature = base64_encode(hash_hmac('sha1', $string, $this-&gt;config-&gt;get('opencart_secret'), 1));<\/pre>\n<p>After generating the signature it creates the url from username,domain,version,time,signature and other filters of extension such as filter category, filter license, page etc. and after then it sends the curl request to the Marketplace API of Opencart Official site and get the corresponding information about the extension.<\/p>\n<pre class=\"brush:php\">$curl = curl_init(OPENCART_SERVER . 'index.php?route=marketplace\/api' . $url);\r\ncurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);\r\ncurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($curl, CURLOPT_FORBID_REUSE, 1);\r\ncurl_setopt($curl, CURLOPT_FRESH_CONNECT, 1);\r\ncurl_setopt($curl, CURLOPT_POST, 1);<\/pre>\n<p>Opencart secret key can be generated from the Opencart Official site by registering the store by clicking on You Stores under the Purchase section and configured it at your own store for get more feature access of the Opencart Marketplace API.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-92837\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2.png\" alt=\"\" width=\"1298\" height=\"706\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2.png 1298w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2-250x136.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2-300x163.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2-768x418.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/08\/img2-1200x653.png 1200w\" sizes=\"(max-width: 1298px) 100vw, 1298px\" loading=\"lazy\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After that store admin can configure them and can access the Marketplace Api from the admin panel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will see about Opencart Marketplace at admin panel in Opencart Version 3. Opencart added the Marketplace which are useful for the store admin for searching, installing, downloading, commenting\u00a0 and filter the Opencart extensions from admin panel instead of visiting their official sites. Work-Flow: Opencart added the marketplace directory to the admin\/controller. Their are <a href=\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":125,"featured_media":84482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[],"class_list":["post-92805","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 Marketplace In Version 3 - 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-marketplace-version-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Opencart Marketplace In Version 3 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Today we will see about Opencart Marketplace at admin panel in Opencart Version 3. Opencart added the Marketplace which are useful for the store admin for searching, installing, downloading, commenting\u00a0 and filter the Opencart extensions from admin panel instead of visiting their official sites. Work-Flow: Opencart added the marketplace directory to the admin\/controller. Their are [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\" \/>\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-08-11T17:25:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\"},\"author\":{\"name\":\"Saurabh Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/f599495ef5c4b4084ae49efd9878ad94\"},\"headline\":\"Opencart Marketplace In Version 3\",\"datePublished\":\"2017-08-11T17:25:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\"},\"wordCount\":242,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\",\"url\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\",\"name\":\"Opencart Marketplace In Version 3 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"datePublished\":\"2017-08-11T17:25:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png\",\"width\":\"825\",\"height\":\"260\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Opencart Marketplace In Version 3\"}]},{\"@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 Marketplace In Version 3 - 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-marketplace-version-3\/","og_locale":"en_US","og_type":"article","og_title":"Opencart Marketplace In Version 3 - Webkul Blog","og_description":"Today we will see about Opencart Marketplace at admin panel in Opencart Version 3. Opencart added the Marketplace which are useful for the store admin for searching, installing, downloading, commenting\u00a0 and filter the Opencart extensions from admin panel instead of visiting their official sites. Work-Flow: Opencart added the marketplace directory to the admin\/controller. Their are [...]","og_url":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-08-11T17:25:27+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/"},"author":{"name":"Saurabh Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/f599495ef5c4b4084ae49efd9878ad94"},"headline":"Opencart Marketplace In Version 3","datePublished":"2017-08-11T17:25:27+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/"},"wordCount":242,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/","url":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/","name":"Opencart Marketplace In Version 3 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","datePublished":"2017-08-11T17:25:27+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/05\/Code-Snippet.png","width":"825","height":"260"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/opencart-marketplace-version-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Opencart Marketplace In Version 3"}]},{"@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\/92805","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=92805"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/92805\/revisions"}],"predecessor-version":[{"id":92859,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/92805\/revisions\/92859"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/84482"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=92805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=92805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=92805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}