update stock_status with sql
-
Hello, i have got a problem.I want to update stock_status of all products with sql using this $wpdb->query(“Update wp_postmeta Set meta_value = ‘instock’ Where post_id = $product_id And meta_key = ‘_stock_status'”);
$wpdb->query(“Update wp_wc_product_meta_lookup Set stock_status = ‘instock’ Where product_id = $product_id”);
The status has changed. But the product is still invisible on the shop page. Please help
I think is a problem with shop visibility
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘update stock_status with sql’ is closed to new replies.