WP Ecommerce variation out of stock message

When a variation is out of stock WP Ecommerce defaults to saying that the product is out of stock rather than just the variation.

There is fork on Git hub covering this at:

https://github.com/wp-e-commerce/WP-e-Commerce/pull/495

The fix is as follows:

wp-content/plugins/wp-e-commerce/wpsc-includes/ajax.functions.php

Around line 100 change as follows:

- $cart_messages[] = sprintf( __( 'Sorry, but the item "%s" is out of stock.', 'wpsc' ), $product->post_title );
+ $cart_messages[] = sprintf( __( 'Sorry, but the item "%s" is out of stock.', 'wpsc' ), get_the_title( $product_id ) );

Leave a Comment