Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress Woocommerce Featured Image being overridden by old featured image
    primarykey
    data
    text
    <p>This is driving me insane:</p> <p>The new featured image for a product in my woocommerce webstore is repeatedly being overridden by the old featured image that has already been removed from the Product. <a href="http://www.ecoegg.com/product/laundry-egg/" rel="nofollow">See Here</a></p> <p>The correct image loads, but then is overidden, by what appears to be a jQuery function somewhere, but I can't track this down. </p> <p>If I delete the first image, save the product, add new featured image, save the product, the first featured image is not displayed, however as I didn't do that first time round, the initial image is stuck. I can't find evidence of two _thumbnail_id rows in the wp_postmeta relating to the product. </p> <p>Driving me nuts...Any ideas how to further trouble shoot this? I've tried disabling the obvious plugins and updating woocommerce, all to no avail. </p> <p>This is the code that is generating the image:</p> <pre><code>if ( has_post_thumbnail() ) { $image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) ); $image_link = wp_get_attachment_url( get_post_thumbnail_id() ); $image = get_the_post_thumbnail( $post-&gt;ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array('title' =&gt; $image_title) ); $attachment_count = count( $product-&gt;get_gallery_attachment_ids() ); if ( $attachment_count &gt; 0 ) { $gallery = '[product-gallery]'; } else { $gallery = ''; } echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '&lt;a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" rel="prettyPhoto' . $gallery . '"&gt;%s&lt;/a&gt;', $image_link, $image_title, $image ), $post-&gt;ID ); } else { echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '&lt;img src="%s" alt="Placeholder" /&gt;', woocommerce_placeholder_img_src() ), $post-&gt;ID ); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload