{"id":356,"date":"2015-01-16T13:02:44","date_gmt":"2015-01-16T13:02:44","guid":{"rendered":"https:\/\/aheaddata.com\/?p=356"},"modified":"2022-11-03T09:46:05","modified_gmt":"2022-11-03T09:46:05","slug":"llistat-de-categories-a-prestashop-1-6","status":"publish","type":"post","link":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/","title":{"rendered":"List of categories in Prestashop 1.6"},"content":{"rendered":"This week we had to create a page in Prestashop (exactly for\u00a0<strong>Prestashop 1.6<\/strong>) with a\u00a0<strong>list of categories<\/strong>, in order to <strong>show all first level categories<\/strong>.<\/p>\n<p>Believe it or not, Prestashop does not include this feature to list categories, so we had to code a module for that purpose. The module has been built based on two works we found through Internet:<\/p>\n<p><a href=\"https:\/\/nemops.com\/creating-new-pages-in-prestashop\">&#8220;Creating new pages in Prestashop&#8221; by\u00a0nemops<\/a><br \/>\n<a href=\"https:\/\/www.prestashop.com\/forums\/topic\/121735-free-module-homepage-categories-module\/\">&#8220;Homepage Categories Module&#8221; by\u00a0jhnstcks\u00a0<\/a><\/p>\n<p>Now, in order to give back to the community, we offer our work in a\u00a0<strong>direct download link<\/strong>:<\/p>\n<p><center><a href=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.zip\"><img style=\"display: inline;\" src=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/download.png\" alt=\"\" \/>allcategories<\/a><\/center><\/p>\n<div style=\"text-align: center;\">\n<form style=\"line-height: 0px; margin-top: 20px;\" action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_top\"><input name=\"cmd\" type=\"hidden\" value=\"_donations\" \/><br \/>\n<input name=\"business\" type=\"hidden\" value=\"mail@aheaddata.com\" \/><br \/>\n<input name=\"lc\" type=\"hidden\" value=\"US\" \/><br \/>\n<input name=\"item_name\" type=\"hidden\" value=\"Ahead Data\" \/><br \/>\n<input name=\"no_note\" type=\"hidden\" value=\"0\" \/><br \/>\n<input name=\"currency_code\" type=\"hidden\" value=\"USD\" \/><br \/>\n<input name=\"bn\" type=\"hidden\" value=\"PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest\" \/><br \/>\n<input alt=\"PayPal - The safer, easier way to pay online!\" name=\"submit\" src=\"https:\/\/www.paypalobjects.com\/en_US\/i\/btn\/btn_donate_LG.gif\" type=\"image\" \/><br \/>\n<img loading=\"lazy\" src=\"https:\/\/www.paypalobjects.com\/es_XC\/i\/scr\/pixel.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/form>\n<\/div>\n<blockquote><p>I already installed it, how can I see the list of categories?<\/p><\/blockquote>\n<p>It&#8217;s easy, you should visit this link:\u00a0https:\/\/example.com\/index.php?fc=module&amp;module=allcategories&amp;controller=allcategories<\/p>\n<blockquote><p>Ok, and how could I create a friendly URL?<\/p><\/blockquote>\n<p>It&#8217;s also very easy,\u00a0go to\u00a0&#8220;Preferences&#8221; \/ &#8220;SEO+URLs&#8221; and create a new entry selecting &#8220;allcategories&#8221; module and controller. In our case, we created the url named\u00a0&#8220;\/coleccion&#8221;, so the list of categories will be shown in the\u00a0URL https:\/\/example.com\/coleccion :<\/p>\n<p><a href=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-358\" src=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.png\" alt=\"allcategories\" width=\"673\" height=\"485\" srcset=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.png 673w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-600x432.png 600w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-300x216.png 300w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-100x72.png 100w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-31x22.png 31w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-38x27.png 38w, https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories-298x215.png 298w\" sizes=\"(max-width: 673px) 100vw, 673px\" \/><\/a><\/p>\n<p>If you have any trouble\/doubts\u00a0or you figure out how to improve the module, let us know via comments in this post :D","protected":false},"excerpt":{"rendered":"<p>This week we had to create a page in Prestashop (exactly for\u00a0Prestashop 1.6) with a\u00a0list of categories, in order to show all first level categories. Believe it or not, Prestashop does not include this feature to list categories, so we &hellip; <a href=\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\">Continued<\/a><\/p>\n","protected":false},"author":333999,"featured_media":358,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28,67,34,6],"tags":[54,42,53,39,41,45,74,51,40,49,38,48,47,52,50,43,46,37,44,12,59,80,99,97,98,13],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>List of categories in Prestashop 1.6 - Ahead Data<\/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:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"List of categories in Prestashop 1.6 - Ahead Data\" \/>\n<meta property=\"og:description\" content=\"This week we had to create a page in Prestashop (exactly for\u00a0Prestashop 1.6) with a\u00a0list of categories, in order to show all first level categories. Believe it or not, Prestashop does not include this feature to list categories, so we &hellip; Continued\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahead Data\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-16T13:02:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-03T09:46:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.png\" \/>\n\t<meta property=\"og:image:width\" content=\"673\" \/>\n\t<meta property=\"og:image:height\" content=\"485\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"web@aheaddata.com\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"web@aheaddata.com\" \/>\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\":\"WebSite\",\"@id\":\"https:\/\/aheaddata.com\/en\/#website\",\"url\":\"https:\/\/aheaddata.com\/en\/\",\"name\":\"Ahead Data\",\"description\":\"Coding, web design and technical assistance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/aheaddata.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\",\"url\":\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\",\"name\":\"List of categories in Prestashop 1.6 - Ahead Data\",\"isPartOf\":{\"@id\":\"https:\/\/aheaddata.com\/en\/#website\"},\"datePublished\":\"2015-01-16T13:02:44+00:00\",\"dateModified\":\"2022-11-03T09:46:05+00:00\",\"author\":{\"@id\":\"https:\/\/aheaddata.com\/#\/schema\/person\/86e344da57003c643d2f1faaff7b54a0\"},\"breadcrumb\":{\"@id\":\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/\"]]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inici\",\"item\":\"https:\/\/aheaddata.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Llistat de categories a Prestashop 1.6\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/aheaddata.com\/#\/schema\/person\/86e344da57003c643d2f1faaff7b54a0\",\"name\":\"web@aheaddata.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aheaddata.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6c685aadd1ebe248c8c9c5d003c88cf7?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6c685aadd1ebe248c8c9c5d003c88cf7?s=96&d=identicon&r=g\",\"caption\":\"web@aheaddata.com\"},\"url\":\"https:\/\/aheaddata.com\/en\/author\/webaheaddata-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"List of categories in Prestashop 1.6 - Ahead Data","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:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/","og_locale":"en_US","og_type":"article","og_title":"List of categories in Prestashop 1.6 - Ahead Data","og_description":"This week we had to create a page in Prestashop (exactly for\u00a0Prestashop 1.6) with a\u00a0list of categories, in order to show all first level categories. Believe it or not, Prestashop does not include this feature to list categories, so we &hellip; Continued","og_url":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/","og_site_name":"Ahead Data","article_published_time":"2015-01-16T13:02:44+00:00","article_modified_time":"2022-11-03T09:46:05+00:00","og_image":[{"width":673,"height":485,"url":"https:\/\/aheaddata.com\/wp-content\/uploads\/2015\/01\/allcategories.png","type":"image\/png"}],"author":"web@aheaddata.com","twitter_card":"summary","twitter_misc":{"Written by":"web@aheaddata.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/aheaddata.com\/en\/#website","url":"https:\/\/aheaddata.com\/en\/","name":"Ahead Data","description":"Coding, web design and technical assistance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aheaddata.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/","url":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/","name":"List of categories in Prestashop 1.6 - Ahead Data","isPartOf":{"@id":"https:\/\/aheaddata.com\/en\/#website"},"datePublished":"2015-01-16T13:02:44+00:00","dateModified":"2022-11-03T09:46:05+00:00","author":{"@id":"https:\/\/aheaddata.com\/#\/schema\/person\/86e344da57003c643d2f1faaff7b54a0"},"breadcrumb":{"@id":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/"]]}]},{"@type":"BreadcrumbList","@id":"https:\/\/aheaddata.com\/en\/2015\/01\/llistat-de-categories-a-prestashop-1-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inici","item":"https:\/\/aheaddata.com\/en\/"},{"@type":"ListItem","position":2,"name":"Llistat de categories a Prestashop 1.6"}]},{"@type":"Person","@id":"https:\/\/aheaddata.com\/#\/schema\/person\/86e344da57003c643d2f1faaff7b54a0","name":"web@aheaddata.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aheaddata.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6c685aadd1ebe248c8c9c5d003c88cf7?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6c685aadd1ebe248c8c9c5d003c88cf7?s=96&d=identicon&r=g","caption":"web@aheaddata.com"},"url":"https:\/\/aheaddata.com\/en\/author\/webaheaddata-com\/"}]}},"_links":{"self":[{"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/posts\/356"}],"collection":[{"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/users\/333999"}],"replies":[{"embeddable":true,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":8,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/posts\/356\/revisions\/385"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/media\/358"}],"wp:attachment":[{"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aheaddata.com\/en\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}