populating extra field with woocommerce categories

ok, solution:

$args = array(
    'order'      => 'ASC',
    'hide_empty' => $hide_empty,
    'include'    => $ids,
    'posts_per_page' =>'-1'
);
$product_categories = get_terms( 'product_cat', $args );
 (isset($_POST["Cianfrusaglie"])) ? $company = $_POST["Cianfrusaglie"] : $company=1;

echo "<select name="cat_shop" id='reg_cat_shop' class="dokan-form-control input-md valid">";
foreach( $product_categories as $category ){
    echo "<option "; ?><?php if ($cat_shop == esc_html( $category->name ) ) echo 'selected' ; ?>
    <?php echo "value="" . esc_attr( $category->name ) . "">" . esc_html( $category->name ) . "</option>";
}
echo "</select>";

Now, in my woocommerce new product page, how i can select my category?