A comprehensive WordPress plugin that adds allergen information to WooCommerce products with full WPML and page builder compatibility.
This plugin adds allergens to each product in your WooCommerce store, helping you comply with food labeling regulations and inform your customers about potential allergens.
- β Add allergens to simple and variable products
- π¨ Display allergens with customizable icons (Classic or Trece theme)
- π Full WPML compatibility - allergens automatically copy to translations
- ποΈ Page builder compatible (Oxygen, Elementor, Bricks, Divi, etc.)
- β‘ Pure JavaScript system for maximum compatibility (no template overrides)
- βΏ Accessibility friendly with proper ARIA labels
- π Custom tab in product admin for easy management
- π¨βπ» Developer-friendly function for custom themes:
treceafw_show_allergens_out()
- Upload the
allergens-woocommerceplugin folder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure allergen icons under WooCommerce > Allergens
- Start adding allergens to your products!
Use the treceafw_show_allergens_out($product) function to display allergens in your custom theme or plugin:
<?php
if (function_exists('treceafw_show_allergens_out')) {
echo treceafw_show_allergens_out($product);
}
?>For more information, see DEVELOPER-GUIDE.md
When using WPML, allergen settings are automatically copied to product translations. No need to manually reconfigure allergens for each language - they will be inherited from the original product.
Key features:
- Automatic synchronization on product save
- Works with simple and variable products
- Auto-configuration via
wpml-config.xml
See WPML-COMPATIBILITY.md for more details.
Works seamlessly with modern page builders:
- β Oxygen Builder
- β Elementor
- β Bricks Builder
- β Divi Builder
- β And any other page builder!
Uses pure JavaScript to dynamically inject allergens, avoiding template conflicts.
- Classic Icons: Allergen icons by Icon Icons (link)
- Trece Icons: By 13Node (13node.com)
- Fixed fatal error: Call to a member function is_type() on string
- Added proper validation for $product object before calling methods
- Documentation improvements
- GitHub README.md added
- Page Builder Compatibility: Works with Oxygen, Elementor, Bricks, Divi, etc.
- Pure JavaScript system for maximum compatibility (no template overrides)
- Dynamic allergen display using WooCommerce events
- Re-added
treceafw_show_allergens_out()function for custom themes/plugins - Simplified codebase - removed template override system
- WPML Compatibility: Allergens now automatically copy to product translations
- Auto-configuration of WPML custom fields for allergens
- Support for variable products with WPML
- Added
wpml-config.xmlfor automatic field configuration
- Accessibility fixes and icon design options under WooCommerce > Allergens
- Better view in smaller screens
- Fixed PHP error in some WordPress installations
- CSS Hotfix
- Hotfix: not deleting on variation
- Added Pistachio allergen
- Better CSS in variations
- Added
treceafw_show_allergens_out()function for developers
- CSS fixes
- Now doesn't replace the short description
- Added allergens for variations
- Added custom tab for allergens
- Better code structure and function names
- Added missing allergen icons
- Initial release
We do web development and if you need a developer or if you think you have found a bug in the plugin, please feel free to contact us at info@13node.com
This plugin is licensed under the GPLv2 or later. https://www.gnu.org/licenses/gpl-2.0.html
