Support » Plugin: WP eCommerce » Single product image size is being ignored

  • Resolved nadworks


    I have just upgraded to the latest version of WPeC. Suddenly my single product thumbnails are all displaying in the much smaller product “Default Product Thumbnail Size” instead of the “Single Product Image Size” as set in my Store settings.

    I have tried to re-upload features images to see if that makes a difference. Nothing.

    How can this happen and where, other than in settings > Store > Presentation do I need to change this behaviour?

    Looks terrible! Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • wp e-commerce has changed the way they call the product images in the latest update. You will need to edit your template file for your “single product page” to resolve the issue. I had the same problem and I went into wp ecommerce pligin folder to get the correct code from the template file

    the correct code is in wpsc-single_product.php

    and looks like

    <div class="imagecol">
    						<?php if ( wpsc_the_product_thumbnail() ) : ?>
    								<a rel="<?php echo wpsc_the_product_title(); ?>" class="<?php echo wpsc_the_product_image_link_classes(); ?>" href="<?php echo esc_url( wpsc_the_product_image() ); ?>">
    									<img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/>
    								if ( function_exists( 'gold_shpcrt_display_gallery' ) )
    									echo gold_shpcrt_display_gallery( wpsc_the_product_id() );
    						<?php else: ?>
    									<a href="<?php echo esc_url( wpsc_the_product_permalink() ); ?>">
    									<img class="no-image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="No Image" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo WPSC_CORE_THEME_URL; ?>wpsc-images/noimage.png" width="<?php echo get_option('product_image_width'); ?>" height="<?php echo get_option('product_image_height'); ?>" />
    						<?php endif; ?>
    					</div><!--close imagecol-->

    You will replace that code with the one that looks similar in your existing theme file for wpsc-single_product.php and it will solve your problem.

    @ missodessa thanks indeed 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single product image size is being ignored’ is closed to new replies.