Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wp-centrics

    (@wpcentrics)

    Hi, @shoebski. Sorry for the delay!!!

    Are your theme commercial, or custom-made? In this case, we’re added on Plugin FAQs a new question that I think will help you:

    I’m theme developer. How to be compatible?

    Comming Soon for WooCommerce works with the actions found in the standard product loop and single product templates.

    The used actions to print the badge code are:

    For single product: do_action( ‘woocommerce_after_main_content’ );
    For product loop: do_action( ‘woocommerce_shop_loop_item_title’ );

    You can find this actions in the templates:

    wp-content/plugins/woocommerce/templates/single-product.php (single product template)
    wp-content/plugins/woocommerce/templates/content-product.php (print each product on loop)

    …if you want to override this files on your WooCommerce child theme, or you’re coding one from scratch,
    maybe you have the same file names on your theme folder:

    wp-content/themes/your-theme/woocommerce/content-product.php
    wp-content/themes/your-theme/woocommerce/single-product.php

    in this case, simply check you’ve this actions on your code:

    For single product: do_action( ‘woocommerce_after_main_content’ );
    For product loop: do_action( ‘woocommerce_shop_loop_item_title’ );

    …and Coming Soon for WooCommerce will do the rest ??`

    Hi,

    no badge showing up on single product page (nor loop).

    • Child theme (of hello)
    • Elementor single product page template

    I enabled “Show Coming Soon badge” at the product.
    In my childtheme‘s theme folder I copied the files as you suggested:
    wp-content/themes/my-theme/woocommerce/content-product.php
    wp-content/themes/my-theme/woocommerce/single-product.php

    I find there:

    “For single product: do_action( ‘woocommerce_after_main_content’ );
    For product loop: do_action( ‘woocommerce_shop_loop_item_title’ );”

    any suggestion?

    Plugin Author wp-centrics

    (@wpcentrics)

    Hi.

    Please, open a new support thread with this question, and give me the site URL.

    Thanks,
    Carles Martin
    wp-centrics support team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Badge Showing on Coming Soon’ is closed to new replies.