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

    (@wpcentrics)

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

    Please, check this in your child-theme: ? (from our Plugin FAQs) 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 ??`

    Plugin Author wp-centrics

    (@wpcentrics)

    The new release add support for Elementor theme builder templates (when the main product image is displayed as background)

    Please, check it, and if the issue continues, please, open another thread

    Hi @wpcentrics

    Can you please assist to check if your plugin is compatible with the OceanWP theme? The badge is displayed on the single product page but not in the shop/loop. I verified that the action woocommerce_shop_loop_item_title is in the woocommerce template (using the default). Also, I spotted a remove action in the theme code here:

    /wp-content/themes/oceanwp/inc/woocommerce/woocommerce-config.php:543

    
    public function remove_elements() {
    			remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
    			remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
    			remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
    			remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
    			remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
    			remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
    			remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
    			remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    		}

    Can you assist? It is a popular theme, if it is a compatibility issue, will you consider fixing it?

    My shop link

    Thanks

    • This reply was modified 2 years, 10 months ago by dalingzaf.
    • This reply was modified 2 years, 10 months ago by dalingzaf.
    Plugin Author wp-centrics

    (@wpcentrics)

    Hi, @dalingzaf. Please, can do you open a new thread with this? This is an old one closed.

    Thanks,
    Carles Martin
    wp-centrics support team

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Badge not working on loop’ is closed to new replies.