<div class="product-item">
    <div class="wrap-img">
        <a href="<?php the_permalink() ?>">
            <img src="<?php echo custom_image_size( get_the_ID(), 390, 440, true ) ?>" alt="<?php the_title_attribute( ) ?>">
        </a>
    </div>
    <div class="wrap-info">
        <h3 class="title"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>

        <?php product_price( get_field( 'price' ), get_field( 'sale_price' ) ) ?>
    </div>
</div>