• Hi there, I am trying to see if there is known integration issue with Enfold (Child) and YITH? I have other paid YITH addons, and rather than paying first, I wanted to see why when creating the badge it is not displaying as intended? The default WC does show, so that function is working as intended (I can edit that in css too).

    I did some searches and found another using requiring some additional snippets in functions.php to handle a corner case on the single product page, but I am missing on both. That discussion is here: https://kriesi.at/support/topic/badge-is-not-show/

    That snippet only applied to the premium version (based on the code itself), so wondering if there was any way to ensure this works in a free mode before I upgrade?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter draftles

    (@draftles)

    Hi, can anyone at YITH assist me? I dont want to paste the website (or any credentials in a public domain). I am a YITH customer of other plugins but unable to get assistance on this one through the ticket process.

    Plugin Support Vanesa

    (@vanesarodriguez)

    Hello there!

    I hope you are doing great ??

    Please, try adding the following code in the functions.php archive of your active theme:

    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');
    }
    }

    if ( !function_exists( 'yith_wcbm_customization_badge_container_start' ) && !function_exists( 'yith_wcbm_customization_badge_container_end' ) ) {
    add_action( 'woocommerce_before_single_product_summary', 'yith_wcbm_customization_badge_container_start', 10 );
    add_action( 'woocommerce_before_single_product_summary', 'yith_wcbm_customization_badge_container_end', 10 );

    function yith_wcbm_customization_badge_container_start() {
    do_action( 'yith_wcbm_theme_badge_container_start' );
    }

    function yith_wcbm_customization_badge_container_end() {
    do_action( 'yith_wcbm_theme_badge_container_end' );
    }
    }

    Let us know if this solved your problem.

    We remain at your disposal.

    Thread Starter draftles

    (@draftles)

    This works, thank you very much!

    Plugin Support Vanesa

    (@vanesarodriguez)

    Hello,
    I am glad this worked!

    We remain at your disposal for any other doubts.

    Have a nice day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.