Version Description
Additional billing setting check
Download this release
Release Info
Developer | printful |
Plugin | Printful Integration for WooCommerce |
Version | 2.1.30 |
Comparing to | |
See all releases |
Code changes from version 2.1.29 to 2.1.30
- includes/class-printful-shipping.php +6 -0
- printful-shipping.php +2 -2
- readme.txt +7 -1
includes/class-printful-shipping.php
CHANGED
@@ -272,6 +272,7 @@ class Printful_Shipping extends WC_Shipping_Method
|
|
272 |
if ( $response === false ) {
|
273 |
$response = $client->post( 'shipping/rates', $request, array(
|
274 |
'expedited' => true,
|
|
|
275 |
) );
|
276 |
//Cache locally, since WC < 2.6 had problems with caching rates form multiple packages internally
|
277 |
set_transient( $key, $response, 1800 );
|
@@ -328,4 +329,9 @@ class Printful_Shipping extends WC_Shipping_Method
|
|
328 |
|
329 |
return '<p>ERROR: ' . htmlspecialchars( $message ) . '</p>';
|
330 |
}
|
|
|
|
|
|
|
|
|
|
|
331 |
}
|
272 |
if ( $response === false ) {
|
273 |
$response = $client->post( 'shipping/rates', $request, array(
|
274 |
'expedited' => true,
|
275 |
+
'is_billing_phone_number_mandatory' => $this->isBillingPhoneNumberRequired(),
|
276 |
) );
|
277 |
//Cache locally, since WC < 2.6 had problems with caching rates form multiple packages internally
|
278 |
set_transient( $key, $response, 1800 );
|
329 |
|
330 |
return '<p>ERROR: ' . htmlspecialchars( $message ) . '</p>';
|
331 |
}
|
332 |
+
|
333 |
+
private function isBillingPhoneNumberRequired()
|
334 |
+
{
|
335 |
+
return get_option('woocommerce_checkout_phone_field', 'required') === 'required';
|
336 |
+
}
|
337 |
}
|
printful-shipping.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Printful Integration for WooCommerce
|
4 |
Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
|
5 |
Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
|
6 |
-
Version: 2.1.
|
7 |
Author: Printful
|
8 |
Author URI: http://www.printful.com
|
9 |
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -20,7 +20,7 @@ if ( ! defined( 'PF_PLUGIN_FILE' ) ) {
|
|
20 |
|
21 |
class Printful_Base {
|
22 |
|
23 |
-
const VERSION = '2.1.
|
24 |
const PF_HOST = 'https://www.printful.com/';
|
25 |
const PF_API_HOST = 'https://api.printful.com/';
|
26 |
|
3 |
Plugin Name: Printful Integration for WooCommerce
|
4 |
Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
|
5 |
Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
|
6 |
+
Version: 2.1.30
|
7 |
Author: Printful
|
8 |
Author URI: http://www.printful.com
|
9 |
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
|
20 |
|
21 |
class Printful_Base {
|
22 |
|
23 |
+
const VERSION = '2.1.30';
|
24 |
const PF_HOST = 'https://www.printful.com/';
|
25 |
const PF_API_HOST = 'https://api.printful.com/';
|
26 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillmen
|
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -65,6 +65,9 @@ Go to https://www.printful.com/dashboard/store , select your WooCommerce store,
|
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
|
|
|
|
|
|
68 |
= 2.1.29 =
|
69 |
WordPress compatibility raised to 5.8. Size guide bugfix
|
70 |
|
@@ -229,6 +232,9 @@ First release
|
|
229 |
|
230 |
== Changelog ==
|
231 |
|
|
|
|
|
|
|
232 |
= 2.1.29 =
|
233 |
* WordPress compatibility raised to 5.8. Size guide bugfix
|
234 |
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.1.30
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
|
66 |
== Upgrade Notice ==
|
67 |
|
68 |
+
= 2.1.30 =
|
69 |
+
Additional billing setting check
|
70 |
+
|
71 |
= 2.1.29 =
|
72 |
WordPress compatibility raised to 5.8. Size guide bugfix
|
73 |
|
232 |
|
233 |
== Changelog ==
|
234 |
|
235 |
+
= 2.1.30 =
|
236 |
+
Additional billing setting check
|
237 |
+
|
238 |
= 2.1.29 =
|
239 |
* WordPress compatibility raised to 5.8. Size guide bugfix
|
240 |
|