WPEC 3.8.7.2 Single Product Image Issue

165 views
Skip to first unread message

Roy Ho

unread,
Nov 23, 2011, 7:52:35 PM11/23/11
to WordPress e-Commerce Plugin Development
In the latest public release, it seems the single product image size
is not working. No matter what you set in the width/height, it will
not change and infact it is using the size from the group/category"
settings.

Can you guys confirm that?

Roy Ho

unread,
Nov 23, 2011, 8:03:17 PM11/23/11
to WordPress e-Commerce Plugin Development
Here is the fix:

File product-template.php Function (wpsc_the_product_thumbnail)

LINE: 1186 -> if ( ! $metadata =
wp_get_attachment_metadata( $thumbnail_id ) )

CHANGETO :

if ( $metadata != wp_get_attachment_metadata( $thumbnail_id ) )

Tracey Kemp

unread,
Nov 23, 2011, 8:10:37 PM11/23/11
to wordpress-e-c...@googlegroups.com
While you're on the subject of thumbnails, can someone explain to me where the featured product thumbnail size (wpsc_the_sticky_image( wpsc_the_product_id()) comes from? For me it displays distorted and wrongly cropped. It's stretched to a size much bigger than the original image that was uploaded.

Tracey Kemp | +61 418 483 493
skype:dogshindleg | twitter:@dogshindleg
web design & development | print design & finished art
ZOMBIE DOG ENTERTAINMENT: http://zombiedogentertainment.com




--
You received this message because you are subscribed to the Google Groups "WordPress e-Commerce Plugin Development" group.
To post to this group, send email to wordpress-e-c...@googlegroups.com.
To unsubscribe from this group, send email to wordpress-e-commerc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wordpress-e-commerce-plugin?hl=en.


Michelle

unread,
Nov 23, 2011, 8:27:38 PM11/23/11
to wordpress-e-c...@googlegroups.com
Hi Tracy,

I would check the css file for that one, there is also a template for the featured product  that you can adjust if you want to move the display and things around. (that should be located in the theme folder)

However featured product image doesn't have a size that can be set - this is something that should probably be looked at, when the images are overhauled.

Michelle
Reply all
Reply to author
Forward
0 new messages