{"id":140388,"date":"2021-06-21T16:47:03","date_gmt":"2021-06-21T16:47:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nutrition-info-for-woocommerce\/"},"modified":"2026-06-22T06:59:55","modified_gmt":"2026-06-22T06:59:55","slug":"nutrition-info-woocommerce","status":"publish","type":"plugin","link":"https:\/\/mai.wordpress.org\/plugins\/nutrition-info-woocommerce\/","author":6788224,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.0","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Nutrition Info for WooCommerce","header_author":"Closemarketing","header_description":"Display nutritional information on you woocommerce product pages.","assets_banners_color":"42ab7a","last_updated":"2026-06-22 06:59:55","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.closemarketing.es\/go\/donate\/","header_plugin_uri":"https:\/\/www.closemarketing.net\/plugin\/nutrition-info-woocommerce","header_author_uri":"https:\/\/www.closemarketing.es","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1609,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"closemarketing","date":"2026-06-02 06:44:17"},"1.0.0":{"tag":"1.0.0","author":"closemarketing","date":"2026-06-20 07:48:42"},"1.0.1":{"tag":"1.0.1","author":"closemarketing","date":"2026-06-22 06:59:55"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-158x158.png":{"filename":"icon-158x158.png","revision":3581327,"resolution":"158x158","location":"assets","locale":"","width":158,"height":158},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3581327,"resolution":"256x256","location":"assets","locale":"","width":158,"height":158}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3581327,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3581327,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"niw\/nutrients":{"name":"niw\/nutrients","title":"Product nutritional information"},"niw\/allergens":{"name":"niw\/allergens","title":"Product allergens"}},"tagged_versions":["0.1","1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Nutritional Info tab in the product edit screen.","2":"Composition &amp; Allergens tab in the product edit screen.","3":"Nutritional table displayed on the single product page.","4":"Allergen icons displayed in the product loop.","5":"Plugin settings under WooCommerce \u2192 Settings \u2192 Nutrients."}},"plugin_section":[],"plugin_tags":[157429,12446,17298,13467,286],"plugin_category":[39,45],"plugin_contributors":[248204,81627,131625,224280],"plugin_business_model":[],"class_list":["post-140388","plugin","type-plugin","status-publish","hentry","plugin_tags-allergens","plugin_tags-food","plugin_tags-ingredients","plugin_tags-nutrition","plugin_tags-woocommerce","plugin_category-business","plugin_category-ecommerce","plugin_contributors-alexcm13","plugin_contributors-closemarketing","plugin_contributors-davidperez","plugin_contributors-matiasquero","plugin_committers-closemarketing","plugin_committers-davidperez"],"banners":{"banner":"https:\/\/ps.w.org\/nutrition-info-woocommerce\/assets\/banner-772x250.jpg?rev=3581327","banner_2x":"https:\/\/ps.w.org\/nutrition-info-woocommerce\/assets\/banner-1544x500.jpg?rev=3581327","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/nutrition-info-woocommerce\/assets\/icon-256x256.png?rev=3581327","icon_2x":"https:\/\/ps.w.org\/nutrition-info-woocommerce\/assets\/icon-256x256.png?rev=3581327","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Nutrition Info for WooCommerce<\/strong> lets you add complete nutritional data, ingredients, and allergen information to each WooCommerce product. All data is entered directly from the product edit screen and displayed on the frontend with a clean, accessible design.<\/p>\n\n<h4>Features<\/h4>\n\n<p><strong>Nutritional information table<\/strong><\/p>\n\n<p>Enter values per 100 g for all standard nutritional fields:<\/p>\n\n<ul>\n<li>Energy (KJ\/kcal)<\/li>\n<li>Fat, saturated, monounsaturated and polyunsaturated fatty acids<\/li>\n<li>Carbohydrate, sugars, polyols and starch<\/li>\n<li>Dietary fiber<\/li>\n<li>Protein<\/li>\n<li>Salt<\/li>\n<li>Vitamins and minerals<\/li>\n<\/ul>\n\n<p>The table is rendered as a collapsible element so it takes no space by default.<\/p>\n\n<p><strong>Ingredients<\/strong><\/p>\n\n<p>A free-text ingredients field is displayed in a separate collapsible section below the nutritional table.<\/p>\n\n<p><strong>Allergen icons<\/strong><\/p>\n\n<p>Choose which allergens apply to each product. Supported allergens (each with its own SVG icon):<\/p>\n\n<p>Alcohol, Almonds, Celery, Corn, Crustaceans, Egg, Fish, Gluten, Honey, Lupins, Milk, Mollusks, Mushrooms, Mustard, Nuts, Organic, Peanuts, Sesame, Soy, Spices, Sugar, Sulfates, Vegetables \u2014 plus a <strong>Vegan<\/strong> badge.<\/p>\n\n<p>Icons are shown in the product loop (shop\/archive pages) and on the single product page.<\/p>\n\n<p><strong>Flexible placement<\/strong><\/p>\n\n<p>From WooCommerce \u2192 Settings \u2192 Nutrients you can choose where the nutritional table and ingredients appear on the single product page:<\/p>\n\n<ul>\n<li>Separate tab<\/li>\n<li>Inside the description tab<\/li>\n<li>After price<\/li>\n<li>After excerpt<\/li>\n<li>After \"Add to Cart\" button<\/li>\n<li>After product metadata<\/li>\n<li>Manual placement (hidden \u2014 use the <code>[nutritiontable]<\/code> shortcode)<\/li>\n<\/ul>\n\n<p><strong>Shortcode<\/strong><\/p>\n\n<p>Use <code>[nutritiontable]<\/code> to render the nutritional table anywhere on the page.<\/p>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 5.8+<\/li>\n<li>WooCommerce 5.0+<\/li>\n<li>PHP 7.4+<\/li>\n<\/ul>\n\n<h3>Links<\/h3>\n\n<ul>\n<li><a href=\"https:\/\/close.marketing\">Closemarketing<\/a><\/li>\n<li><a href=\"https:\/\/www.closemarketing.net\/plugin\/nutrition-info-woocommerce\">Plugin page<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install it through the WordPress plugin screen.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen.<\/li>\n<li>Go to <strong>WooCommerce \u2192 Settings \u2192 Nutrients<\/strong> to configure the display position and styling options.<\/li>\n<li>Edit any product and fill in the <strong>Nutritional Info<\/strong> and <strong>Composition &amp; Allergens<\/strong> tabs.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20do%20i%20enter%20the%20nutritional%20data%3F\"><h3>Where do I enter the nutritional data?<\/h3><\/dt>\n<dd><p>In the product edit screen, two new tabs appear in the Product Data metabox: <strong>Nutritional Info<\/strong> and <strong>Composition &amp; Allergens<\/strong>.<\/p><\/dd>\n<dt id=\"can%20i%20place%20the%20table%20manually%3F\"><h3>Can I place the table manually?<\/h3><\/dt>\n<dd><p>Yes. Set the position to \"Manual placement (hidden)\" in the settings and use the <code>[nutritiontable]<\/code> shortcode wherever you need it.<\/p><\/dd>\n<dt id=\"are%20the%20allergen%20icons%20customisable%3F\"><h3>Are the allergen icons customisable?<\/h3><\/dt>\n<dd><p>The icons are SVG files stored in <code>includes\/assets\/allergens\/<\/code>. You can replace any file with your own SVG keeping the same filename.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed: Strings were not in English.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Refactor: migrated to <code>CLOSE\\NutritionInfo<\/code> namespace with Composer autoload (classmap).<\/li>\n<li>New: <code>Hooks<\/code> class centralises all frontend hook registration.<\/li>\n<li>New: <code>Allergens<\/code> class loads SVG icons from <code>includes\/assets\/allergens\/<\/code> \u2014 no more inline SVG in PHP.<\/li>\n<li>New: vegan badge shown separately before the product thumbnail in the shop loop.<\/li>\n<li>New: position setting supports \"inside description tab\" option that appends nutrition and ingredients to the existing tab content.<\/li>\n<li>Improvement: nutritional table and ingredients rendered as accessible collapsible elements.<\/li>\n<li>Improvement: allergen icons include a label shown on hover.<\/li>\n<li>Fix: Composer autoload switched from PSR-4 to classmap to support WordPress <code>class-*.php<\/code> filename convention.<\/li>\n<li>Removed: <code>sass\/<\/code> source folder (CSS is distributed as a compiled file).<\/li>\n<li>Refactor: improved code structure, sanitization and escaping across all files.<\/li>\n<li>New: PHPStan and PHP_CodeSniffer tooling added.<\/li>\n<li>New: GitHub Actions workflow for linting and deployment.<\/li>\n<li>Fix: variable sanitization and nonce verification on product meta save.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display nutritional information and allergen icons on your WooCommerce product pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/140388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=140388"}],"author":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/closemarketing"}],"wp:attachment":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=140388"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=140388"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=140388"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=140388"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=140388"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=140388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}