WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nadworks
    Member
    Posted 11 months 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.

    http://wordpress.org/plugins/wp-e-commerce/

  2. missodessa
    Member
    Posted 8 months 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

    yoursite.com/wp-content/plugins/wp-e-commerce/wpsc-theme

    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(); ?>"/>
    								</a>
    								<?php
    								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'); ?>" />
    									</a>
    						<?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
    Member
    Plugin Author

    Posted 8 months ago #

    @ missodessa thanks indeed :)

Reply

You must log in to post.

About this Plugin

About this Topic