Cross Sales is a feature under WP E-Commerce wherein a current user viewing a product’s page will see what other people bought with regard to the current product being displayed. You can find this under Store Settings > Marketing.
It’s that “People who bought this item also bought…” type of feature.
Upon activating it though, I received an error which simply does not display the thumbnails properly. All I get is the “NO IMAGE” default thumbnail under that category.
To fix this, open up the file “display.functions.php” found in
/designer-content/plugins/wp-e-commerce/wpsc-includes/
Now do the ff
1. Locate function : wpsc_also_bought( $product_id )
2. Replace line 89 with
if ( wpsc_the_product_thumbnail( null, null, $also_bought_data['ID'] ) ) {
3. Replace line 91 with
$image_path = wpsc_the_product_thumbnail( $image_display_width, $image_display_height, $also_bought_data['ID'] );
Products are now supposed to display their corresponding thumbnails properly. This works well with the latest WP E-Commerce Version 3.8.5. It’s now up to you to code up that CSS to have them display just the way you like em.
If you use a lower version such as 3.8.4, you do the same steps only with a minor difference.
1. Locate function : wpsc_also_bought( $product_id )
2. Replace line 88 with
if ( wpsc_the_product_thumbnail( null, null, $also_bought_data['ID'] ) ) {
3. Replace line 90 with
$image_path = wpsc_the_product_thumbnail( $image_display_width, $image_display_height, $also_bought_data['ID'] );
4. Replace line 92 with
$output .= '<img src="' . $image_path . '" id="product_image_' . $also_bought_data['ID'] . '" style="margin-top: ' . $margin_top . 'px" />';