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

    (@yithemes)

    Hi,

    I’m sorry but I tested the plugins and works fine on our installation.
    You can see here the shop page:

    https://plugins.yithemes.com/yith-woocommerce-badge-management/?preview

    and here the category page:

    https://plugins.yithemes.com/yith-woocommerce-badge-management/product-category/clothing/

    I think your theme have a problem with the standard WooCommerce hooks and this is the reason why you don’t see any badge in subcategories.

    You can try to ask at theme developer.
    Please, can you tell me wich theme you use ?

    Thanks!

    Thread Starter shearwater

    (@shearwater)

    Hi,

    I’m using Pinnacle theme. I’ll ask them for the possible problem/solution.

    Thanks a lot for your reply.

    Regards

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    I tested the plugin with Pinnacle Theme.
    The problem is that your theme don’t use the specific Woocommerce function to show product images.

    You can correct this issue editing the file content-product.php that is into wp-content\themes\pinnacle\woocommerce\

    You have to replace lines 70-77:

    if ( has_post_thumbnail() ) {
    $product_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘full’ );
    $product_image_url = $product_image[0];
    $image_product = aq_resize($product_image_url, $productimgwidth, $productimgheight, true);
    if(empty($image_product)) {$image_product = $product_image_url;} ?>
    <img width=”<?php echo esc_attr($productimgwidth);?>” height=”<?php echo esc_attr($productimgheight);?>” src=”<?php echo esc_attr($image_product);?>” class=”attachment-shop_catalog wp-post-image” alt=”<?php the_title();?>”>
    <?php }

    with this code:

    if ( has_post_thumbnail() ) {
    echo woocommerce_get_product_thumbnail(array($productimgwidth,$productimgheight));
    }

    In this way, it works!

    Best Regards!

    Thread Starter shearwater

    (@shearwater)

    Wooww it works like a charm!

    I hadn’t been able to fix it until your solution. As you said, it is a theme problem.
    I appreciate very much your support, specially as my problem had nothing to do with your plugin.

    Thank you very much and best regards!

    Plugin Author YITHEMES

    (@yithemes)

    Thanks to you!
    If you like our support, please vote our plugin with 5 stars!
    Regards!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Badge not showing in shop page or categories page’ is closed to new replies.