Hi
To change all TVA Status + 1000 products :
Go to the WordPress dashboard,
go to Appearance > Theme Editor and find the functions.php file (section on the right)
add code :
function update_tva_status() {
$args = array(
'post_type' => 'product',
'posts_per_page' => -1,
'fields' => 'ids',
);
$products = get_posts($args);
foreach ($products as $product_id) {
update_post_meta($product_id, '_tax_status', 'taxable');
}
}
add_action('init', 'update_tva_status');
>>> Is this the same issue you resolved on your other thread here?
NO, this one is to apply the modifications
Resolved, Thanks
-
This reply was modified 2 months ago by yacine84.