WP eCommerce - Version 3.8.7.1

Version Description

  • Fix: Fancy notifications not being displayed on single product page.
  • Fix: Sale and normal prices are switched around.
Download this release

Release Info

Developer garyc40
Plugin Icon 128x128 WP eCommerce
Version 3.8.7.1
Comparing to
See all releases

Code changes from version 3.8.7 to 3.8.7.1

readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mufasa, jghazally, valentinas, mychelle, garyc40
3
  Donate link: http://getshopped.org
4
  Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
  Requires at least: 3.0
6
- Tested up to: 3.2
7
- Stable tag: 3.8.7
8
 
9
  WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
10
 
@@ -156,6 +156,10 @@ After upgrading from earlier versions look for link "Update Store". This will up
156
 
157
 
158
  == Changelog ==
 
 
 
 
159
  = 3.8.7 =
160
  * New: 'insert_child_product_meta' filter to allow customising of meta data when a variation product (child product) is created.
161
  * New: 'wpsc_variation_groups' and 'wpsc_all_associated_variations' filters. Allows customising order of variation menu items etc.
3
  Donate link: http://getshopped.org
4
  Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
  Requires at least: 3.0
6
+ Tested up to: 3.2.1
7
+ Stable tag: 3.8.7.1
8
 
9
  WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
10
 
156
 
157
 
158
  == Changelog ==
159
+ = 3.8.7.1 =
160
+ * Fix: Fancy notifications not being displayed on single product page.
161
+ * Fix: Sale and normal prices are switched around.
162
+
163
  = 3.8.7 =
164
  * New: 'insert_child_product_meta' filter to allow customising of meta data when a variation product (child product) is created.
165
  * New: 'wpsc_variation_groups' and 'wpsc_all_associated_variations' filters. Allows customising order of variation menu items etc.
wp-shopping-cart.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP e-Commerce
4
  * Plugin URI: http://getshopped.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
- * Version: 3.8.7
7
  * Author: Instinct Entertainment
8
  * Author URI: http://getshopped.org/
9
  **/
3
  * Plugin Name: WP e-Commerce
4
  * Plugin URI: http://getshopped.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
+ * Version: 3.8.7.1
7
  * Author: Instinct Entertainment
8
  * Author URI: http://getshopped.org/
9
  **/
wpsc-core/wpsc-constants.php CHANGED
@@ -26,9 +26,9 @@ function wpsc_core_constants() {
26
  if(!defined('WPSC_URL'))
27
  define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
28
  // Define Plugin version
29
- define( 'WPSC_VERSION', '3.8.7' );
30
- define( 'WPSC_MINOR_VERSION', '447770' );
31
- define( 'WPSC_PRESENTABLE_VERSION', '3.8.7' );
32
 
33
  // Define Debug Variables for developers
34
  define( 'WPSC_DEBUG', false );
26
  if(!defined('WPSC_URL'))
27
  define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
28
  // Define Plugin version
29
+ define( 'WPSC_VERSION', '3.8.7.1' );
30
+ define( 'WPSC_MINOR_VERSION', '449097' );
31
+ define( 'WPSC_PRESENTABLE_VERSION', '3.8.7.1' );
32
 
33
  // Define Debug Variables for developers
34
  define( 'WPSC_DEBUG', false );
wpsc-includes/product-template.php CHANGED
@@ -414,7 +414,7 @@ function wpsc_the_product_price( $no_decimals = false, $only_normal_price = fals
414
  } else {
415
  $price = $full_price = get_post_meta( $product_id, '_wpsc_price', true );
416
 
417
- if ( $only_normal_price ) {
418
  $special_price = get_post_meta( $product_id, '_wpsc_special_price', true );
419
 
420
  if ( ( $full_price > $special_price ) && ( $special_price > 0 ) )
414
  } else {
415
  $price = $full_price = get_post_meta( $product_id, '_wpsc_price', true );
416
 
417
+ if ( ! $only_normal_price ) {
418
  $special_price = get_post_meta( $product_id, '_wpsc_special_price', true );
419
 
420
  if ( ( $full_price > $special_price ) && ( $special_price > 0 ) )
wpsc-includes/theme.functions.php CHANGED
@@ -198,7 +198,7 @@ function wpsc_database_update_notice() { ?>
198
  }
199
 
200
 
201
- function wpsc_theme_admin_notices() {
202
  // Database update notice is most important
203
  if ( get_option ( 'wpsc_version' ) < 3.8 ) {
204
 
@@ -1233,10 +1233,11 @@ function add_to_cart_shortcode( $content = '' ) {
1233
  $output = wpsc_add_to_cart_button( $product_id, true );
1234
  $content = str_replace( $original_string, $output, $content );
1235
  }
1236
- }
1237
- if ( ! $fancy_notification_output ) {
1238
- $content .= wpsc_fancy_notifications( true );
1239
- $fancy_notification_output = true;
 
1240
  }
1241
  return $content;
1242
  }
198
  }
199
 
200
 
201
+ function wpsc_theme_admin_notices() {
202
  // Database update notice is most important
203
  if ( get_option ( 'wpsc_version' ) < 3.8 ) {
204
 
1233
  $output = wpsc_add_to_cart_button( $product_id, true );
1234
  $content = str_replace( $original_string, $output, $content );
1235
  }
1236
+
1237
+ if ( ! $fancy_notification_output ) {
1238
+ $content .= wpsc_fancy_notifications( true );
1239
+ $fancy_notification_output = true;
1240
+ }
1241
  }
1242
  return $content;
1243
  }