Version Description
Do not calculate shipping rates for US addresses while ZIP or state is not entered
Download this release
Release Info
Developer | printful |
Plugin | Printful Integration for WooCommerce |
Version | 1.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.6 to 1.2.7
- includes/class-printful-integration.php +0 -0
- includes/class-printful-shipping.php +8 -0
- printful-shipping.php +2 -2
- readme.txt +7 -1
includes/class-printful-integration.php
CHANGED
File without changes
|
includes/class-printful-shipping.php
CHANGED
@@ -206,6 +206,14 @@ class Printful_Shipping extends WC_Shipping_Method
|
|
206 |
'currency' => get_woocommerce_currency()
|
207 |
);
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
foreach ($package['contents'] as $item) {
|
210 |
if (!empty($item['data']) && ($item['data']->is_virtual() || $item['data']->is_downloadable())) {
|
211 |
continue;
|
206 |
'currency' => get_woocommerce_currency()
|
207 |
);
|
208 |
|
209 |
+
|
210 |
+
if ($request['recipient']['country_code'] == 'US' &&
|
211 |
+
(empty($request['recipient']['zip']) ||
|
212 |
+
empty($request['recipient']['state_code']))
|
213 |
+
) {
|
214 |
+
return false;
|
215 |
+
}
|
216 |
+
|
217 |
foreach ($package['contents'] as $item) {
|
218 |
if (!empty($item['data']) && ($item['data']->is_virtual() || $item['data']->is_downloadable())) {
|
219 |
continue;
|
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: 1.2.
|
7 |
Author: Printful
|
8 |
Author URI: http://www.theprintful.com
|
9 |
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -16,7 +16,7 @@ new Printful_Base();
|
|
16 |
|
17 |
class Printful_Base {
|
18 |
|
19 |
-
const VERSION = '1.2.
|
20 |
|
21 |
/**
|
22 |
* Construct the plugin.
|
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: 1.2.7
|
7 |
Author: Printful
|
8 |
Author URI: http://www.theprintful.com
|
9 |
License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
|
16 |
|
17 |
class Printful_Base {
|
18 |
|
19 |
+
const VERSION = '1.2.7';
|
20 |
|
21 |
/**
|
22 |
* Construct the plugin.
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: girts_u
|
|
3 |
Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -41,6 +41,9 @@ Go to https://www.theprintful.com/dashboard/store , select your WooCommerce stor
|
|
41 |
|
42 |
== Upgrade Notice ==
|
43 |
|
|
|
|
|
|
|
44 |
= 1.2.6 =
|
45 |
Include shipping rates in tax calculation for states that require that
|
46 |
|
@@ -82,6 +85,9 @@ First release
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
85 |
= 1.2.6 =
|
86 |
* Include shipping rates in tax calculation for states that require that
|
87 |
|
3 |
Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 1.2.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
41 |
|
42 |
== Upgrade Notice ==
|
43 |
|
44 |
+
= 1.2.7 =
|
45 |
+
Do not calculate shipping rates for US addresses while ZIP or state is not entered
|
46 |
+
|
47 |
= 1.2.6 =
|
48 |
Include shipping rates in tax calculation for states that require that
|
49 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.2.7 =
|
89 |
+
* Do not calculate shipping rates for US addresses while ZIP or state is not entered
|
90 |
+
|
91 |
= 1.2.6 =
|
92 |
* Include shipping rates in tax calculation for states that require that
|
93 |
|