Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #828802

    Hello ,

    I have problem with badge plugin. I am using https://yithemes.com/themes/plugins/yith-woocommerce-badge-management/ plugin.
    Problem is that I see badge on shop but when I try to open item I dont see that badge on single item. I have open ticket on YITH but they are sy that is template over ride that woocommerce function.
    I have try to change from enfold to Woocommerce gallery but after that is all messed up.

    Can you help me ?

    Regards

    #828860

    Hey Zaccc,

    Sure, Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to switch to default wordpress theme (just for checking how it works on the default theme)

    Best regards,
    Nikko

    #828930
    This reply has been marked as private.
    #829366

    Hi,

    Thanks, can you ask the hook/action they use on the single product page? there are lots listed in config.php of config-woocommerce folder of the enfold theme, I’m not sure which woocommerce hook/action they are using.

    Best regards,
    Nikko

    #829395

    Hello,

    They have send me this CSS but it is not working. I can ask him for a hook.
    add_action( ‘after_setup_theme’, ‘show_badges_on_single_products’ );
    function show_badges_on_single_products() {

    remove_filter( ‘woocommerce_single_product_image_thumbnail_html’, ‘avia_woocommerce_gallery_thumbnail_description’, 10 );
    add_filter( ‘woocommerce_single_product_image_thumbnail_html’, ‘avia_woocommerce_gallery_thumbnail_description’, 9, 4 );

    }

    Regards

    #831418

    Hi Zaccc,

    I am seeing the badge on your single product page. Did you manage to get it working? It could have been just a cache issue. Could you please clear the cache, check again and get back to us.

    Best regards,
    Victoria

    #831803

    Hello,

    I have get support from Yith support. I have ad in child theme in php functions this code and it is working.

    add_action( ‘after_setup_theme’, ‘show_badges_on_single_products’ );
    function show_badges_on_single_products() {

    remove_filter( ‘woocommerce_single_product_image_thumbnail_html’, ‘avia_woocommerce_gallery_thumbnail_description’, 10 );
    add_filter( ‘woocommerce_single_product_image_thumbnail_html’, ‘avia_woocommerce_gallery_thumbnail_description’, 9, 4 );

    }

    if (defined( ‘YITH_WCBM_PREMIUM’ ) && YITH_WCBM_PREMIUM && function_exists(‘YITH_WCBM_Frontend’)){
    add_filter( ‘woocommerce_single_product_image_thumbnail_html’, array( YITH_WCBM_Frontend(), ‘show_badge_on_product_thumbnail’ ), 99, 2 );
    }

    Regards

    #832459

    Hi Zaccc,

    Great! Glad you got it working for you and thank you for sharing! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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