wp-e-commerce/WP-e-Commerce — pull request #267 by benhuson (2013-03-05 23:51:24+00:00)
Title: Re-code product thumbnail functions to prioritise use of post thumbnail ...

...if available to reduce unnecessary requests.

In wpsc_the_product_image() check if there is a post thumbnail first before getting first child image as this saves requests.

Can also use wpsc_the_product_thumbnail_id() to avoid repetitive code.

Plus a bit of code tidy.