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

    (@yithemes)

    Hi,
    to fix this issue with your theme, open wp-content/themes/neighborhood/woocommerce/content-product.php
    and replace lines 103-105:

    if ( has_post_thumbnail() ) {
       $image_html = wp_get_attachment_image( get_post_thumbnail_id(), 'shop_catalog' );
    }

    with this code:

    if ( has_post_thumbnail() ) {
       $image_html = apply_filters( 'post_thumbnail_html', wp_get_attachment_image( get_post_thumbnail_id(), 'shop_catalog' ), $product->id );
    }

    In this way it should work fine.

    Best Regards
    YIThemes

    Hi Yith,

    Same issues. Wanted to show the badge on the category page.
    But i cant find the line

    if ( has_post_thumbnail() ) {
    $image_html = wp_get_attachment_image( get_post_thumbnail_id(), ‘shop_catalog’ );
    }

    under wp-content/themes/(template name)/woocommerce/content-product.php

    Plugin Author YITHEMES

    (@yithemes)

    Hi midazorion,

    Your theme probably doesn’t use the standard WooCommerce hooks and functions: for this reason you don’t see any badge on products.

    What theme are you using?

    Best Regards
    YIThemes

    Aaron

    (@luxuryartstore)

    Hi, I have the same problem!! ??

    I have in my theme ‘Basel’ from themeforrest a nice badge plugin from you and I would like to upgrade it. ??

    The problem is, it doesn’t work good now. In some areas it is visible but not in all :(((

    Please could you check it out? If the problem could not be fixed then it would make sence to buy your upgrade.

    Best wishes,
    Ingo

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Badge showing in single product but not in category page …’ is closed to new replies.