Magelon Export is a WooCommerce plugin that allows store owners to export product data in compliance with Google Merchant specifications.
/wp-content/uploads/magelon-export/products.csv.Developers can add custom fields using the magelon_export_custom_product_fields filter:
php
add_filter('magelon_export_custom_product_fields', function ($fields) {
$fields['_custom_field'] = 'Custom Meta Field';
return $fields;
});
“`php
add_filter(‘magelon_export_custom_product_fields’, function ($fields) {
// Ensure ACF is installed and active
if (!function_exists(‘acf_get_field_groups’)) {
return $fields;
}
// Get all ACF field groups
$acf_field_groups = acf_get_field_groups();
foreach ($acf_field_groups as $group) {
$fields_in_group = acf_get_fields($group['key']);
if ($fields_in_group) {
foreach ($fields_in_group as $acf_field) {
$fields[$acf_field['name']] = 'ACF: ' . $acf_field['label'];
}
}
}
return $fields;
});
`
Support
For issues, open a GitHub issue or contact support.
support@magelon.com