Elementor WooCommerce Meta
Il s'agit d'un plugin Wordpress pour Elementor afin que celui ci puisse afficher les meta de produits Woocommerce de façon granulaire
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hunterd/elementor-wc-meta/archive/refs/heads/main.zipA professional WordPress plugin that adds WooCommerce product meta fields to Elementor widgets with granular control.
🚀 Fonctionnalités
- ✅ Widget Elementor personnalisé pour l'affichage granulaire des méta données WooCommerce
- ✅ Support de 10+ types de données : catégories, tags, prix, SKU, stock, dimensions, etc.
- ✅ Contrôles granulaires : Choix du produit, du champ, et du style d'affichage
- ✅ Architecture Laravel-inspired avec Service Providers et conteneur IoC
- ✅ Build moderne avec Vite.js et Composer
- ✅ Production ready avec minification et optimisations
- ✅ Compatible HPOS : Support complet du stockage haute performance WooCommerce
Supported Meta Fields
- Product Categories: Display product categories with optional limits
- Product Tags: Show product tags with customizable separators
- Product Attributes: Display all product attributes or limit quantity
- Product Price: Show current price with proper formatting
- Regular Price: Display regular price
- Sale Price: Show sale price when available
- Product SKU: Display product SKU
- Stock Status: Show in stock/out of stock status
- Product Weight: Display weight with unit
- Product Dimensions: Show dimensions (L × W × H)
- Custom Attribute: Display any custom product attribute or meta field
Requirements
- WordPress 6.0+
- PHP 8.0+
- WooCommerce 8.0+
- Elementor 3.0+
Installation
- Upload the plugin files to
/wp-content/plugins/elementor-wc-meta/ - Install dependencies:
composer install - Build assets:
npm install && npm run build - Activate the plugin through WordPress admin
- The "WC Meta Field" widget will be available in Elementor's WooCommerce elements
Usage
In Elementor Editor
- Add the "WC Meta Field" widget to your layout
- Select the desired meta field from the dropdown
- For "Custom Attribute", enter the attribute key (e.g.,
pa_color,_custom_field) - Configure display options:
- Toggle label visibility
- Set custom label text
- Limit number of items (for taxonomies/attributes)
- Choose separator for multiple values
- Select HTML tag for output
Custom Attributes
The plugin supports displaying custom product attributes and meta fields:
- Product Attributes: Use
pa_prefix (e.g.,pa_color,pa_size) - Custom Meta Fields: Use the exact meta key (e.g.,
_custom_field,_product_url) - Plugin Fields: Many plugins add custom fields (e.g.,
_yoast_wpseo_title)
See CUSTOM_ATTRIBUTES.md for detailed usage examples.
In Loop Templates
The widget automatically detects the current product context, making it perfect for:
- Product archive pages
- Loop templates
- Single product layouts
- Custom WooCommerce layouts
Development
Project Structure
elementor-wc-meta/
├── app/ # Application code (Laravel-style)
│ ├── Foundation/ # Core application classes
│ ├── Providers/ # Service providers
│ ├── Elementor/ # Elementor integration
│ ├── WooCommerce/ # WooCommerce integration
│ └── Assets/ # Asset management
├── resources/ # Frontend resources
│ ├── js/ # JavaScript files
│ └── scss/ # Sass stylesheets
├── public/ # Compiled assets
├── vendor/ # Composer dependencies
├── composer.json # PHP dependencies
├── package.json # Node.js dependencies
├── vite.config.js # Vite configuration
└── elementor-wc-meta.php # Main plugin file
Building Assets
# Development (with watching)
npm run dev
# Production build
npm run build
PHP Dependencies
# Install PHP dependencies
composer install
# Update dependencies
composer update
Hooks & Filters
Filters
elementor_wc_meta_fields- Modify available meta fieldselementor_wc_meta_get_fields- Filter meta fields for display
Actions
elementor_wc_meta_before_render- Before widget renderelementor_wc_meta_after_render- After widget render
Extending the Plugin
Adding Custom Meta Fields
add_filter('elementor_wc_meta_fields', function($fields) {
$fields['custom_field'] = [
'label' => 'Custom Field',
'type' => 'meta',
'meta_key' => '_custom_meta_key',
'supports_limit' => false,
'supports_label' => true,
];
return $fields;
});
Custom Widget Styling
Add your custom CSS targeting the widget classes:
.elementor-widget-wc-meta .elementor-wc-meta {
/* Your custom styles */
}
License
GPL v2 or later
Support
For support and feature requests, please use the GitHub issues page.