• Resolved johnlefas

    (@johnlefas)


    https://themeforest.net/item/pinkmart-ajax-theme-for-woocommerce/24735635

    Any ideas on how to fix this and display the badges on categories?
    Thanks in advance

    I tried this piece of code

    
    if ( !function_exists( 'yith_wcbm_shop_badge_container_start' ) && !function_exists( 'yith_wcbm_shop_badge_container_end' ) ) {
        add_action( 'woocommerce_before_shop_loop_item_title', 'yith_wcbm_shop_badge_container_start', 9 );
        add_action( 'woocommerce_before_shop_loop_item_title', 'yith_wcbm_shop_badge_container_end', 20 );
        function yith_wcbm_shop_badge_container_start() {
            do_action( 'yith_wcbm_theme_badge_container_start' );
        }
    
        function yith_wcbm_shop_badge_container_end() {
            do_action( 'yith_wcbm_theme_badge_container_end' );
        }
    }

    but it won’t work

    • This topic was modified 3 years, 2 months ago by johnlefas.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    and thank you for writing in!

    Unfortunately, we don’t have a copy of that theme; however, if you cannot see badges in Shop pages, probably your theme is not using the standard WooCommerce/WordPress hooks and functions.
    YITH WooCommerce Badge Management uses the following hooks to add the badges on product images:

    • woocommerce_single_product_image_thumbnail_html
    • post_thumbnail_html
    • woocommerce_product_get_image

    In this case, you should contact your theme developers and ask them to add/use these missing hooks in their theme.

    Thread Starter johnlefas

    (@johnlefas)

    Hello i got in touch with the template devs, explained the issue but they don’t want to add it because “it affects functionality”.
    Where can i get in touch with YITH team directly for a quote for this?

    Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    you can contact us on our website.
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Badges won’t display on categories – PINKMART’ is closed to new replies.