WP eCommerce
[resolved] Single product image size is being ignored (3 posts)

  1. nadworks
    Posted 2 years ago #

    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.


  2. missodessa
    Posted 2 years ago #

    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.

  3. Dan Milward
    Posted 2 years ago #

    @ missodessa thanks indeed :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic