Home Forums Plugins Product Importer Deluxe [Resolved] Custom fields import manipulation Reply To: [Resolved] Custom fields import manipulation

#46490
Support Team
Participant

Hi Dima, good question. Just to clarify the woo_pd_create_product_addons WordPress Filter is only accessed when importing new Products while woo_pd_merge_product_addons is only accessed when merging Product changes.

You could detect this state earlier by accessing the WordPress Filter woo_pd_prepare_product and accessing the $import and $global arguments passed as part of that WordPress Filter.

For instance while using the woo_pd_prepare_product WordPress Filter:

// Merging
if( $import->import_method == ‘update’ ) {
// Do something only when merging Products
}
if( $import->import_method == ‘new’ ) {
// Do something only when importing new Products
}

Does this help? Feel free to open a Support ticket if required or let me know what point in the import process you want to make the modifications

https://www.visser.com.au/premium-support/