WP eCommerce - Version 3.11.7

Version Description

[2017-2-05] =

  • Fix: In PHP versions prior to 5.5, we caused a fatal error. Our apologies are sincere, but update your PHP! Literally the same problem resolved in 3.11.6, just in a different context. We'll get better at supporting EOL PHP, the WordPress way.
Download this release

Release Info

Developer JustinSainton
Plugin Icon 128x128 WP eCommerce
Version 3.11.7
Comparing to
See all releases

Code changes from version 3.11.6 to 3.11.7

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpecommerce.org
4
  Tags: e-commerce, digital downloads, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
  Requires at least: 4.5
6
  Tested up to: 4.7.2
7
- Stable tag: 3.11.6
8
 
9
  WP eCommerce is a free, powerful plugin that empowers you to sell anything online, quickly and easily.
10
 
@@ -36,6 +36,10 @@ After upgrading from earlier versions look for link "Update Store". This will up
36
 
37
  == Changelog ==
38
 
 
 
 
 
39
  = 3.11.6 [2017-2-05] =
40
 
41
  * Fix: In PHP versions prior to 5.5, we caused a fatal error. Our apologies are sincere, but update your PHP!
4
  Tags: e-commerce, digital downloads, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
  Requires at least: 4.5
6
  Tested up to: 4.7.2
7
+ Stable tag: 3.11.7
8
 
9
  WP eCommerce is a free, powerful plugin that empowers you to sell anything online, quickly and easily.
10
 
36
 
37
  == Changelog ==
38
 
39
+ = 3.11.7 [2017-2-05] =
40
+
41
+ * Fix: In PHP versions prior to 5.5, we caused a fatal error. Our apologies are sincere, but update your PHP! Literally the same problem resolved in 3.11.6, just in a different context. We'll get better at supporting EOL PHP, the WordPress way.
42
+
43
  = 3.11.6 [2017-2-05] =
44
 
45
  * Fix: In PHP versions prior to 5.5, we caused a fatal error. Our apologies are sincere, but update your PHP!
wp-shopping-cart.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP eCommerce
4
  * Plugin URI: http://wpecommerce.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://wpecommerce.org" target="_blank">WPeCommerce.org</a> | <a href="https://wordpress.org/support/plugin/wp-e-commerce/" target="_blank">Support Forum</a> | <a href="http://docs.wpecommerce.org/" target="_blank">Documentation</a>
6
- * Version: 3.11.6
7
  * Author: WP eCommerce
8
  * Author URI: http://wpecommerce.org/
9
  * Text Domain: wp-e-commerce
3
  * Plugin Name: WP eCommerce
4
  * Plugin URI: http://wpecommerce.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://wpecommerce.org" target="_blank">WPeCommerce.org</a> | <a href="https://wordpress.org/support/plugin/wp-e-commerce/" target="_blank">Support Forum</a> | <a href="http://docs.wpecommerce.org/" target="_blank">Documentation</a>
6
+ * Version: 3.11.7
7
  * Author: WP eCommerce
8
  * Author URI: http://wpecommerce.org/
9
  * Text Domain: wp-e-commerce
wpsc-components/theme-engine-v1/templates/wpsc-shopping_cart_page.php CHANGED
@@ -140,14 +140,18 @@ endif;
140
  </td>
141
  </tr>
142
 
143
- <?php if ( ! wpsc_have_shipping_quote() ) : // No valid shipping quotes ?>
 
 
 
 
144
  <?php if ( ! wpsc_have_valid_shipping_zipcode() ) : ?>
145
  <tr class='wpsc_update_location'>
146
  <td colspan='5' class='shipping_error' >
147
  <?php _e('Please provide a Zipcode and click Calculate in order to continue.', 'wp-e-commerce'); ?>
148
  </td>
149
  </tr>
150
- <?php elseif ( ! empty( wpsc_get_customer_meta( 'shippingcountry' ) ) ) : ?>
151
  <tr class='wpsc_update_location_error'>
152
  <td colspan='5' class='shipping_error' >
153
  <?php _e('Sorry, shipping quotes could not be calculated with the details provided. Please double check your shipping address details.', 'wp-e-commerce'); ?>
140
  </td>
141
  </tr>
142
 
143
+ <?php
144
+ $shipping_country = wpsc_get_customer_meta( 'shippingcountry' );
145
+
146
+ if ( ! wpsc_have_shipping_quote() ) : // No valid shipping quotes
147
+ ?>
148
  <?php if ( ! wpsc_have_valid_shipping_zipcode() ) : ?>
149
  <tr class='wpsc_update_location'>
150
  <td colspan='5' class='shipping_error' >
151
  <?php _e('Please provide a Zipcode and click Calculate in order to continue.', 'wp-e-commerce'); ?>
152
  </td>
153
  </tr>
154
+ <?php elseif ( ! empty( $shipping_country ) ) : ?>
155
  <tr class='wpsc_update_location_error'>
156
  <td colspan='5' class='shipping_error' >
157
  <?php _e('Sorry, shipping quotes could not be calculated with the details provided. Please double check your shipping address details.', 'wp-e-commerce'); ?>
wpsc-core/wpsc-constants.php CHANGED
@@ -55,15 +55,15 @@ function wpsc_core_constants() {
55
 
56
  // Define Plugin version
57
  if ( ! defined( 'WPSC_VERSION' ) ) {
58
- define( 'WPSC_VERSION' , '3.11.6' );
59
  }
60
 
61
  if ( ! defined( 'WPSC_MINOR_VERSION' ) ) {
62
- define( 'WPSC_MINOR_VERSION' , '94d2a7a' );
63
  }
64
 
65
  if ( ! defined( 'WPSC_PRESENTABLE_VERSION' ) ) {
66
- define( 'WPSC_PRESENTABLE_VERSION', '3.11.6' );
67
  }
68
 
69
  // Define a salt to use when we hash, WPSC_SALT may be defined for us in our config file, so check first
55
 
56
  // Define Plugin version
57
  if ( ! defined( 'WPSC_VERSION' ) ) {
58
+ define( 'WPSC_VERSION' , '3.11.7' );
59
  }
60
 
61
  if ( ! defined( 'WPSC_MINOR_VERSION' ) ) {
62
+ define( 'WPSC_MINOR_VERSION' , 'fb03617' );
63
  }
64
 
65
  if ( ! defined( 'WPSC_PRESENTABLE_VERSION' ) ) {
66
+ define( 'WPSC_PRESENTABLE_VERSION', '3.11.7' );
67
  }
68
 
69
  // Define a salt to use when we hash, WPSC_SALT may be defined for us in our config file, so check first