shortik
Forum Replies Created
-
Hi,
thx for reply. I’m using WP All Import Pro v4.9.4 and WP All Import – WooCommerce Import Add-On Pro v4.0.0. What is the purpose of the plugin you linked?Hi, OK, thanks for reply.
Hi, can you say when you will publish stable version with this hook, please? I’m not sure I want beta version. 🙂 But if it will be long time, I will try the beta. 🙂
Thanks
When I tried to make a new import for some feed and checked the “Delete products that are no longer present in your file” I see built-in function that set “out of stock” instead of deletion… Picture.
Now it seems I can use that function but when I set “Unique identifier” for product SKU, what is in the feed, the import creates new products. Where WP All import stores data about what products was imported by specific import? Can I fill some table in database to pair products from old import to new import so WP all import will skip creating files that are already in database?Hi,
I made the code like this. Will see if it works. Thanks for your reply.add_filter('wp_all_import_is_post_to_delete', 'set_out_of_stock_when_missing_in_feed', 10, 3); function set_out_of_stock_when_missing_in_feed($is_post_to_delete, $post_id, $import) { wc_update_product_stock_status($post_id, 'outofstock'); return false; }