How to withdraw bestsellers Woocomerce?

Hello, WooComerce study Found the layout of the online store, there is a block "News", "bestsellers". I want to do so in the admin you can specify what items to display in this block, plus each of these products in the corner of the card should be displayed, that is, for example, "New".
A little scattered brain found two options, especially from each other do not differ. To add an arbitrary field with the help of hooks Woocomercе or using other plugins (like Carbon, ACF, CFS etc).
Added field with the help of Woo as follows:
add_action( 'woocommerce_product_options_general_product_data', 'art_woo_add_custom_fields' );
art_woo_add_custom_fields function() {
 global $product, $post;
 echo '<div class="options_group">';// Grouping fields
 woocommerce_wp_checkbox( array(
 'id' => '_checkbox',
 'wrapper_class' => 'show_if_simple',
 'label' => 'Checkbox',
 'description' => 'New',
 ) );
 woocommerce_wp_text_input( array(
 'id' => '_number_field',
 'label' => __( 'Serial number', 'woocommerce' ),
 'placeholder' => 'Serial number on the main',
 'description' => __( 'only enter numbers', 'woocommerce' ),
 'type' => 'number',
 'custom_attributes' => array(
 'step' => '1',
 'min' => '0',
 ) );
 echo '</div>';

And tried to bring to the home:
 $loop = new WP_Query( array(
 'post_type' => 'product', 
 'posts_per_page' => 4,
 'orderby' => 'date',

<?php if ($loop->have_posts()) : ?>
 <?php while ($loop->have_posts()) :
 $product = wc_get_product();
 dump($product->get_meta( '_checkbox', true ));?>
 <?php endwhile; endif;?>

But nothing happened.
The question is: how it could be implemented more correctly or how to modify my version? Sticks don't break on the first Wu experience.
April 4th 20 at 12:55
0 answer

Find more questions by tags WordPressWooCommerce