Version Description
- Fix PHP Warning for individually packed shipping rates
Download this release
Release Info
| Developer | woothemes |
| Plugin | |
| Version | 1.13.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.13.0 to 1.13.1
- classes/class-wc-connect-shipping-method.php +5 -3
- readme.txt +4 -1
- woocommerce-services.php +1 -1
classes/class-wc-connect-shipping-method.php
CHANGED
|
@@ -375,7 +375,7 @@ if ( ! class_exists( 'WC_Connect_Shipping_Method' ) ) {
|
|
| 375 |
|
| 376 |
$dimension_unit = get_option( 'woocommerce_dimension_unit' );
|
| 377 |
$weight_unit = get_option( 'woocommerce_weight_unit' );
|
| 378 |
-
$measurements_format = '%s x %s x %s ' . $dimension_unit . ', %s ' . $weight_unit;
|
| 379 |
|
| 380 |
foreach ( $rate->packages as $rate_package ) {
|
| 381 |
$service_ids[] = $rate_package->service_id;
|
|
@@ -398,10 +398,12 @@ if ( ! class_exists( 'WC_Connect_Shipping_Method' ) ) {
|
|
| 398 |
$item_measurements = sprintf( $measurements_format, $item->length, $item->width, $item->height, $item->weight );
|
| 399 |
$product_summaries[] =
|
| 400 |
( $count > 1 ? sprintf( '<em>%s x</em> ', $count ) : '' ) .
|
| 401 |
-
sprintf( '<strong>%s</strong>
|
| 402 |
}
|
| 403 |
}
|
| 404 |
|
|
|
|
|
|
|
| 405 |
if ( ! property_exists( $rate_package, 'box_id' ) ) {
|
| 406 |
$package_name = __( 'Unknown package 📦', 'woocommerce-services' );
|
| 407 |
} else if ( 'individual' === $rate_package->box_id ) {
|
|
@@ -422,7 +424,7 @@ if ( ! class_exists( 'WC_Connect_Shipping_Method' ) ) {
|
|
| 422 |
);
|
| 423 |
}
|
| 424 |
|
| 425 |
-
$package_summaries[] = sprintf( '<strong>%s</strong>
|
| 426 |
. '<ul><li>' . implode( '</li><li>', $product_summaries ) . '</li></ul>';
|
| 427 |
}
|
| 428 |
|
| 375 |
|
| 376 |
$dimension_unit = get_option( 'woocommerce_dimension_unit' );
|
| 377 |
$weight_unit = get_option( 'woocommerce_weight_unit' );
|
| 378 |
+
$measurements_format = '(%s x %s x %s ' . $dimension_unit . ', %s ' . $weight_unit . ')';
|
| 379 |
|
| 380 |
foreach ( $rate->packages as $rate_package ) {
|
| 381 |
$service_ids[] = $rate_package->service_id;
|
| 398 |
$item_measurements = sprintf( $measurements_format, $item->length, $item->width, $item->height, $item->weight );
|
| 399 |
$product_summaries[] =
|
| 400 |
( $count > 1 ? sprintf( '<em>%s x</em> ', $count ) : '' ) .
|
| 401 |
+
sprintf( '<strong>%s</strong> %s', $item_name, $item_measurements );
|
| 402 |
}
|
| 403 |
}
|
| 404 |
|
| 405 |
+
$package_measurements = '';
|
| 406 |
+
|
| 407 |
if ( ! property_exists( $rate_package, 'box_id' ) ) {
|
| 408 |
$package_name = __( 'Unknown package 📦', 'woocommerce-services' );
|
| 409 |
} else if ( 'individual' === $rate_package->box_id ) {
|
| 424 |
);
|
| 425 |
}
|
| 426 |
|
| 427 |
+
$package_summaries[] = sprintf( '<strong>%s</strong> %s', $package_name, $package_measurements )
|
| 428 |
. '<ul><li>' . implode( '</li><li>', $product_summaries ) . '</li></ul>';
|
| 429 |
}
|
| 430 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, allendav, kellychoffman, jkudish, jeffstiel
|
|
| 3 |
Tags: canada-post, shipping, stamps, usps, woocommerce, taxes, payment, stripe
|
| 4 |
Requires at least: 4.6
|
| 5 |
Tested up to: 4.9.5
|
| 6 |
-
Stable tag: 1.13.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -91,6 +91,9 @@ The source code is freely available [in GitHub](https://github.com/Automattic/wo
|
|
| 91 |
|
| 92 |
== Changelog ==
|
| 93 |
|
|
|
|
|
|
|
|
|
|
| 94 |
= 1.13.0 =
|
| 95 |
* Show customer selected shipping rate when purchasing a shipping label
|
| 96 |
* Add shipping labels to Reports
|
| 3 |
Tags: canada-post, shipping, stamps, usps, woocommerce, taxes, payment, stripe
|
| 4 |
Requires at least: 4.6
|
| 5 |
Tested up to: 4.9.5
|
| 6 |
+
Stable tag: 1.13.1
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 91 |
|
| 92 |
== Changelog ==
|
| 93 |
|
| 94 |
+
= 1.13.1 =
|
| 95 |
+
* Fix PHP Warning for individually packed shipping rates
|
| 96 |
+
|
| 97 |
= 1.13.0 =
|
| 98 |
* Show customer selected shipping rate when purchasing a shipping label
|
| 99 |
* Add shipping labels to Reports
|
woocommerce-services.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
* Text Domain: woocommerce-services
|
| 9 |
* Domain Path: /i18n/languages/
|
| 10 |
-
* Version: 1.13.
|
| 11 |
* WC requires at least: 3.0.0
|
| 12 |
* WC tested up to: 3.3.4
|
| 13 |
*
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
* Text Domain: woocommerce-services
|
| 9 |
* Domain Path: /i18n/languages/
|
| 10 |
+
* Version: 1.13.1
|
| 11 |
* WC requires at least: 3.0.0
|
| 12 |
* WC tested up to: 3.3.4
|
| 13 |
*
|
