{"id":356,"date":"2020-08-13T11:55:56","date_gmt":"2020-08-13T10:55:56","guid":{"rendered":"https:\/\/www.webgeneration.co.uk\/?page_id=356"},"modified":"2025-07-01T19:28:30","modified_gmt":"2025-07-01T18:28:30","slug":"category-fields","status":"publish","type":"page","link":"https:\/\/www.prestafusion.com\/blog\/documentation\/category-fields","title":{"rendered":"Category Fields"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>Category Fields for Prestashop allows you to display additional content on your category pages in a custom location on your category page, allowing you to add more content to your category pages and therefore help you optimize your SEO campaign on your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installation\">Installation<\/h2>\n\n\n\n<p>The installation procedure is very much similar to most other Prestashop modules. No core changes required therefore installation is straight forward, be sure to follow the instructions below to ensure a successful installation.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Upload the module folder to your stores <code>{root}\/modules<\/code> folder<\/li>\n\n\n\n<li>Once uploaded, login to your Prestashop Back Office and head over to the <strong>Modules<\/strong> section<\/li>\n\n\n\n<li>Search for the module and click <strong>Install<\/strong><\/li>\n\n\n\n<li>After a successful installation, the module configuration screen is presented to you. More details on this in the next section.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuration\">Configuration<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/documentation-images\/categoryfields\/configuration-installation.webp\" alt=\"Configuring the module\"\/><\/figure>\n\n\n\n<p>After opening the module configuration you should see the Global Fields tab.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuration--global-fields\">Global Fields<\/h2>\n\n\n\n<p>This tab allows you to create, edit and manage global fields for your category pages. Once a global field has been created it will become available in the <strong>edit category<\/strong> pages in the back office for each category under <code>Catalog > Categories > edit category<\/code>.<\/p>\n\n\n\n<p><strong><em>Note:<\/em><\/strong> In most use cases, only one global field needs to be created for your entire catalog. This will then be displayed on your categories pages.<br>The content for the global field can be set for each category individually when you edit a category in the back office (see later)<\/p>\n\n\n\n<p>By default, the module creates one global field ready for use when you install the module, therefore you probably won\u2019t need to create another<br>one. This field is displayed below the products on the category pages. You can edit the properties of this hook by clicking the edit icon next to<br>the hook name.<\/p>\n\n\n\n<p>However, in some situations you may wish to create additional fields, for example, you want to display additional content above the products on<br>the category pages. You could create a new global field for this. Lets do this by clicking the <strong>Add new global field<\/strong> button. You should see the form<br>below.<\/p>\n\n\n\n<p><strong>[Name]<\/strong><br>Supply a name for the field to help you identify it. Try avoid using spaces or special characters,<\/p>\n\n\n\n<p><strong>[Location]<\/strong><br>Choose the location (hook) on the category page where the content for this field should be displayed.<\/p>\n\n\n\n<p><strong>[Collapsible]<\/strong><br>When enabled, you\u2019ll be able to supply an excerpt (short content version) of the field, as well as full content for each category. The short version<br>of the field content will be displayed by default on the category pages with a more link which the user can click to see the full content.<\/p>\n\n\n\n<p>When left disabled, the full content of the field will be displayed by default<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuration-category-fields\">Category Fields<\/h2>\n\n\n\n<p>Once we\u2019re happy with the global fields we\u2019ve setup, we can start populating the content for each category. To start this process, navigate to<br><code>Catalog > Categories<\/code> and edit a category. Now when editing a category, you\u2019ll see the global fields available for populating on a per category basis, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/documentation-images\/categoryfields\/category-field-content.webp\" alt=\"Edit fields for individual categories\"\/><\/figure>\n\n\n\n<p>The module supports multi language sites, therefore for each field, you can enter content for each active language in your store.<\/p>\n\n\n\n<p>For a field which is collapsible, you will also see the <strong>excerpt<\/strong> editor as well as the <strong>content<\/strong>, you can popular both.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/documentation-images\/categoryfields\/category-field-content-excerpt.webp\" alt=\"Edit field excerpt for individual categories\"\/><\/figure>\n\n\n\n<p>After entering the content for the category field, save the category. You\u2019ll now see the extra content appear on the relevant category pages in the<br>store front.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"front-end\">Front End<\/h2>\n\n\n\n<p>Once you\u2019ve populated the category fields for your categories, the extra content should appear on the category pages in the store front.<\/p>\n\n\n\n<p>Below is an example of field content being displayed just below the category products:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/documentation-images\/categoryfields\/front-end-extra-field-content.webp\" alt=\"Extra category field content on individual category pages\"\/><\/figure>\n\n\n\n<p>And below is another example of a collapsible field being displayed on the category page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/documentation-images\/categoryfields\/front-end-extra-field-excerpt.webp\" alt=\"Extra collapsible category field content on individual category pages\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/addons.prestashop.com\/en\/blocks-tabs-banners\/18173-category-fields.html\" class=\"btn-cta-primary btn-full-width\">Get Category Fields on Prestashop Addons site<\/a><\/p>\n<p><a href=\"https:\/\/www.prestafusion.com\/prestashop-modules\/32-category-fields-prestashop.html\" class=\"btn-cta-primary btn-full-width\">Get Category Fields on Prestafusion<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Category Fields for Prestashop allows you to display additional content on your category pages in a custom location on your category page, allowing you to add more content to your category pages and therefore help you optimize your SEO campaign on your site. Installation The installation procedure is very much similar to most other [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":358,"parent":59,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-documentation.php","meta":{"footnotes":""},"class_list":["post-356","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/pages\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":11,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/pages\/356\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/pages\/356\/revisions\/1093"}],"up":[{"embeddable":true,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/pages\/59"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/media\/358"}],"wp:attachment":[{"href":"https:\/\/www.prestafusion.com\/blog\/wp-json\/wp\/v2\/media?parent=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}