• Resolved csgaraglino

    (@csgaraglino)


    When installed and loaded with a Default Featured Image – it replaced the Featured Product Image in WooCommerce.

    Can we get an update, so this will not happen?

    Chris Sgaraglino, CTO
    ILGM, Inc.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hello csgaraglino,

    I tried installing woocommerce with the default storefront theme.
    And I don’t see the problem. What theme are you using?

    Are there other plugins which might do something with images?

    Thread Starter csgaraglino

    (@csgaraglino)

    I am running Divi form Elegant Themes.
    Nope, ont he plugins.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    That’s a paid theme, I can’t check a paid theme.

    Most likely the theme has it’s own overriding image. But also checks for a featured image. And then picks the wrong one.

    If you don’t need the featured image on your products (but only on blog posts or whatever) you can exclude all products by adding the following code.

    
    <?php
    function dfi_posttype_woocommerce_products ( $dfi_id, $post_id ) {
      $post = get_post($post_id);
      if ( 'product' === $post->post_type ) {
        return 0; // no image
      }
      return $dfi_id; // the original featured image id
    }
    add_filter( 'dfi_thumbnail_id', 'dfi_posttype_woocommerce_products', 10, 2 );
    

    Usualy the functions.php of your theme is a good place. If you don’t want to touch that put it in wp-content/mu-plugins/no-product-dfi.php

    • This reply was modified 6 years, 9 months ago by Jan-Willem.
    Thread Starter csgaraglino

    (@csgaraglino)

    This didn’t work.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Sorry to hear that. TO me it’s now even more likely that the theme does something weird.

    I’m afraid I can’t do anymore.
    You may have a shot if you ask the theme builder. You paid them after all.
    Or debug yourself.

    I could maybe debug it paid in a few hours. But I’m not really comfortable with that either.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi, did my advice help?
    Do you need anymore help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removes WooCommerce Product Photo?’ is closed to new replies.