Home Forums WoodMart support forum YITH Badge Management Issue

YITH Badge Management Issue

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #208181

    Andrew
    Participant

    Hi, The badges from YITH Badgment Management Premium Plugin doesn’t show when using Woodmart Theme.

    The badges show properly when using Storefront theme.

    I’ve tried adding the below code in the functions.php in the child theme, but still it doesn’t work in Woodmart theme.

    remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 );
    add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );

    I’ve successfully disabled the ‘Sale’ Label using the below code, because it was persistent.

    .product-labels {
    	display: none!important;
    }

    Could you please help to show the YITH Woocommerce Badge Management Labels. Thanks.

    Attachments:
    You must be logged in to view attached files.
    #208194

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?
    Be sure that you have added the code to your child theme and it is already active.

    Thank you in advance

    #208219

    Andrew
    Participant

    Please see below

    #208228

    Artem Temos
    Keymaster

    We need your website URL and admin access to be able to visit your website.

    #208292

    Andrew
    Participant

    Hi please see below

    #208337

    Artem Temos
    Keymaster

    The code is not the right one as you posted here on the forum https://gyazo.com/48fc3b2bb62dfdfff2ede367409ce059
    Please, correct the code and check how it works. Also, send us a product that has some badges so we can test.

    #208343

    Andrew
    Participant

    Hi,

    The code I used was from earlier post in this forum, provided by staff.

    Could you please provide the correct code.

    Please see link of products below.

    #208344

    Artem Temos
    Keymaster

    Please, provide a correct FTP access because we can’t connect with the previous data. And the website is not working because of PHP error in the child theme during saving via WordPress dashboard. We need your FTP to fix this. https://gyazo.com/b510ea56af8116c13c266be11bf2ca6f

    #208359

    Andrew
    Participant

    Please check.

    Attachments:
    You must be logged in to view attached files.
    #208368

    Artem Temos
    Keymaster

    Try to use the following code and put it into the functions.php file in the child theme to fix this

    add_action('init', function() {
        remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 );
        add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
    }, 30 );
    #222678

    Andrew
    Participant

    Hi, this code worked in Woodmart 4, but after we updated to Woodmart 5, we are having the same issue again.

    This issue is limited to shop pages and category pages, and specifically to Woodmart theme. We tested in Storefront theme

    Could you please help?

    #222707

    Artem Temos
    Keymaster

    Hello,

    Try to replace that code with the following

    add_action('init', function() {
        remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 );
        add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
    }, 1100 );

    Regards

    #222885

    Andrew
    Participant

    Thank you so much. It works.

    #222915

    Artem Temos
    Keymaster

    You are welcome!

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘YITH Badge Management Issue’ is closed to new replies.