F
F
First Name2016-11-30 23:44:53
css
First Name, 2016-11-30 23:44:53

Does not display product options in the product card, how to do it right?

Good day to all. The site itself. I want to make a variable product. I do everything right (I put a variable product in the product settings, choose options) But this field does not appear in the product card. The picture itself also disappears (although it exists) Thank you in advance for the answers.
BKUNqG-kLWU.jpg
Code from content-single-product.php file

<div itemscope itemtype="<?php echo woocommerce_get_product_schema(); ?>" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>

  <?php
    /**
     * woocommerce_before_single_product_summary hook.
     *
     * @hooked woocommerce_show_product_sale_flash - 10
     * @hooked woocommerce_show_product_images - 20
     */
    do_action( 'woocommerce_before_single_product_summary' );
  ?>

  <div class="summary entry-summary">
    <?php
      /**
       * woocommerce_single_product_summary hook.
       *
       * @hooked woocommerce_template_single_title - 5
       * @hooked woocommerce_template_single_rating - 10
       * @hooked woocommerce_template_single_price - 10
       * @hooked woocommerce_template_single_excerpt - 20
       * @hooked woocommerce_template_single_add_to_cart - 30
       * @hooked woocommerce_template_single_meta - 40
       * @hooked woocommerce_template_single_sharing - 50
       */
      do_action( 'woocommerce_single_product_summary' );
      
    ?> 

  </div><!-- .summary -->

  <?php
    /**
     * woocommerce_after_single_product_summary hook.
     *
     * @hooked woocommerce_output_product_data_tabs - 10
     * @hooked woocommerce_upsell_display - 15
     * @hooked woocommerce_output_related_products - 20
     */
    do_action( 'woocommerce_after_single_product_summary' );
  ?>

  <meta itemprop="url" content="<?php the_permalink(); ?>" /> 

</div><!-- #product-<?php the_ID(); ?> -->

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maks Codov, 2016-12-01
@4604590

On the site I see that there is a variable product.
Additional Information
Material
Amari, Siena, Pecan, Ash White, Nutwood Natinga Add
pictures in jpg/png and file names without spaces, special characters and in Latin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question