{"id":159067,"date":"2019-01-19T09:11:20","date_gmt":"2019-01-19T09:11:20","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=159067"},"modified":"2019-01-21T04:07:55","modified_gmt":"2019-01-21T04:07:55","slug":"how-to-restrict-product-quantity-of-a-order-in-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/","title":{"rendered":"How to restrict Product Quantity of a Order to buy in PrestaShop"},"content":{"rendered":"<p>If you want to restrict a client to buy only a specific number of quantity of a product in PrestaShop this blog will help you in the same with some lines of script. you will just need to override function<strong> checkQuantities()<\/strong>\u00a0of\u00a0<a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/develop\/classes\/Cart.php\"><strong>Cart.php <\/strong><\/a>class, in PrestaShop this function checks if product quantities in Cart are available in stock or not.<\/p>\n<div>\n<pre class=\"brush:php\">\/* override function*\/\r\npublic function checkQuantities($return_product = false)\r\n{\r\n    $parentResult = parent::checkQuantities($return_product);\r\n    if ($parentResult) {\r\n        $cartProducts = $this-&gt;getProducts();\r\n        if (!empty($cartProducts)) {\r\n            foreach ($cartProducts as $productList) {\r\n                \/\/-------our conditions as require---------\r\n                -------------------------------------------\r\n                $ristrictedQty = 1; \/\/max quantity \r\n                $currentQuantity = $productList['quantity'];\r\n                if ($currentQuantity &gt; $ristrictedQty) {\r\n                    return $productList;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    return $parentResult;\r\n}<\/pre>\n<p>let&#8217;s discuss this code first<strong> This function should return an array of the product if you want to restrict a product else true<\/strong>\u00a0this is because there are some restriction. now to know this\u00a0restriction lets see this function call this function calls in <a href=\"https:\/\/github.com\/PrestaShop\/PrestaShop\/blob\/develop\/controllers\/front\/CartController.php\"><strong>CartController <\/strong><\/a>of the front controller of PrestaShop in the private\u00a0function areProductsAvailable().<\/p>\n<pre class=\"brush:php\">private function areProductsAvailable()\r\n{\r\n    $product = $this-&gt;context-&gt;cart-&gt;checkQuantities(true);\r\n\r\n    if (true === $product || !is_array($product)) {\r\n        return true;\r\n    }\r\n    if ($product['active']) {\r\n        return $this-&gt;trans(\r\n            'The item %product% in your cart is no longer available in this quantity. You cannot proceed with your order until the quantity is adjusted.',\r\n            array('%product%' =&gt; $product['name']),\r\n            'Shop.Notifications.Error'\r\n        );\r\n    }\r\n\r\n    return $this-&gt;trans(\r\n        'This product (%product%) is no longer available.',\r\n        array('%product%' =&gt; $product['name']),\r\n        'Shop.Notifications.Error'\r\n    );\r\n}<\/pre>\n<p>Hence the error above written in\u00a0areProductsAvailable() will be shown something like this on cart page,<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-159485 size-full\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\" alt=\"prestahop-cart-page\" width=\"1200\" height=\"584\" loading=\"lazy\" \/><\/p>\n<p>and the customer can&#8217;t order as the checkout button is disabled. even if on changing the disable attribute by inspect\u00a0element the page will again redirect on this cart page.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you want to restrict a client to buy only a specific number of quantity of a product in PrestaShop this blog will help you in the same with some lines of script. you will just need to override function checkQuantities()\u00a0of\u00a0Cart.php class, in PrestaShop this function checks if product quantities in Cart are available in <a href=\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":234,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[],"class_list":["post-159067","post","type-post","status-publish","format-standard","hentry","category-prestashop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog<\/title>\n<meta name=\"description\" content=\"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi\" \/>\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\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\" \/>\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=\"2019-01-19T09:11:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-21T04:07:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\" \/>\n<meta name=\"author\" content=\"Umang Rastogi\" \/>\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=\"Umang Rastogi\" \/>\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\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\"},\"author\":{\"name\":\"Umang Rastogi\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5a95b0113c27a8b7d35ce794ba34eb8e\"},\"headline\":\"How to restrict Product Quantity of a Order to buy in PrestaShop\",\"datePublished\":\"2019-01-19T09:11:20+00:00\",\"dateModified\":\"2019-01-21T04:07:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\"},\"wordCount\":175,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\",\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\",\"name\":\"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\",\"datePublished\":\"2019-01-19T09:11:20+00:00\",\"dateModified\":\"2019-01-21T04:07:55+00:00\",\"description\":\"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png\",\"width\":1200,\"height\":584},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to restrict Product Quantity of a Order to buy in PrestaShop\"}]},{\"@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\/5a95b0113c27a8b7d35ce794ba34eb8e\",\"name\":\"Umang Rastogi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/741e0b3251aaa063eb6a01e069543282cdef965968e85d971ca24f02701aa0c7?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\/741e0b3251aaa063eb6a01e069543282cdef965968e85d971ca24f02701aa0c7?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Umang Rastogi\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/umang-rastogi054\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog","description":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi","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\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog","og_description":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi","og_url":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2019-01-19T09:11:20+00:00","article_modified_time":"2019-01-21T04:07:55+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png","type":"","width":"","height":""}],"author":"Umang Rastogi","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Umang Rastogi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/"},"author":{"name":"Umang Rastogi","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5a95b0113c27a8b7d35ce794ba34eb8e"},"headline":"How to restrict Product Quantity of a Order to buy in PrestaShop","datePublished":"2019-01-19T09:11:20+00:00","dateModified":"2019-01-21T04:07:55+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/"},"wordCount":175,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png","articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/","url":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/","name":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png","datePublished":"2019-01-19T09:11:20+00:00","dateModified":"2019-01-21T04:07:55+00:00","description":"How to restrict Product Quantity of a Order to buy in PrestaShop - Webkul Blog - prestashop - Webkul Blog by Umang Rastogi","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/01\/Cart-e1547888080946.png","width":1200,"height":584},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-restrict-product-quantity-of-a-order-in-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to restrict Product Quantity of a Order to buy in PrestaShop"}]},{"@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\/5a95b0113c27a8b7d35ce794ba34eb8e","name":"Umang Rastogi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/741e0b3251aaa063eb6a01e069543282cdef965968e85d971ca24f02701aa0c7?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\/741e0b3251aaa063eb6a01e069543282cdef965968e85d971ca24f02701aa0c7?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Umang Rastogi"},"url":"https:\/\/webkul.com\/blog\/author\/umang-rastogi054\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/159067","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\/234"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=159067"}],"version-history":[{"count":11,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/159067\/revisions"}],"predecessor-version":[{"id":159524,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/159067\/revisions\/159524"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=159067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=159067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=159067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}