Hi GAlex Stefani,
ImportWP is a generic importer, while i am currently working on an importer template specific to woocommerce is it is not yet ready.
You can still import WooCommerce products if you know all the product custom fields you need to set if you are just importing simple products? or are you trying to also import variable products?
The best way to do conditional values is to add a script to your themes functions file, for example the following script will take a stockstatus of 'Y' or 'N' and convert is to instock or outofstock.
function jciwp_ticket_3774_woocommerce_stock_status($value){
// Uncomment to limit this to a specific importer based on its id
// if(JCI()->importer->get_ID() !== 45177) {
// return value;
// }
// if field is populated
if('Y' === $value){
return 'instock';
}
return 'outofstock';
}
add_filter('iwp/custom_field/_stock_status', 'jciwp_ticket_3774_woocommerce_stock_status');
You can override any custom field values by adding a filter 'iwp/custom_field/{field_name}'
Hope this helps.
James
ok so after playing a lot those are the fields that i cannot find (at least those that i need)
image gallery photos and
attributes
thanks in advance for your help