Answer the question
In order to leave comments, you need to log in
How to set variation name in woocommerce programmatically?
This is not a big code:
$variation_id = 6837;
$product_name = 'Product 1234 ';
$product = wc_get_product( $variation_id);
$product_name = $product->get_name();
$product->set_name($product_name . 'aaa1');
$product->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question